plain old text block in sidebar?

trevor_allett

Joined: 2005-07-30
Posts: 3
Posted: Sun, 2005-07-31 22:01

hi, I was hoping to get a block in the sidebar, main page, just to enter any text i like. An introduction of sorts. Is this reasonable? I messed around with "Custom Field" for a while but got nowhere…

This is a great bit of kit BTW, I installed it in 45 mins or so
cheers

PS. I'm using the Matrix theme btw

Gallery version = 2.0-beta-4 core 0.9.32
PHP version = 4.3.5 apache
Webserver = Apache/1.3.29 (Unix) mod_perl/1.28 PHP/4.3.5
Database = mysql 4.0.18
Toolkits = Exif, Gd, NetPBM, Thumbnail
Operating system = FreeBSD cgi03.plus.net 4.10-STABLE FreeBSD 4.10-STABLE #4: Thu Jul i386
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412.6 (KHTML, like Gecko) Safari/412.2

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-31 22:48

if you want to enter some text that is visible on all pages, edit themes/matrix/template/theme.tpl, you can use ordinary html there.

if you want to enter some text that is visible on all pages, but not just somewhere, you want it to be in the sidebar, edit themes/matrix/template/sidebar.tpl.

 
yorryk

Joined: 2005-09-07
Posts: 3
Posted: Tue, 2005-09-13 11:06

Problem: I need different texts in the sidebar depending on which album is displayed.
What I dream about is a VERY BASIC AND SIMPLE text block in the sidebar that I could add from 'Choose a block' dropdown in the 'album edit' page.
To give an example: I need different text if, say, album called 'flowers' is displayed and different for 'trees'.
I followed instructions how to make a simple module by Kirill, but I can't find how to put this module into sidebar dropdown selection box.
If anyone has a solution for this please share.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-09-13 14:15

Just and idea, since it sounds like you want a description. Why not, though I don't know how easy or hard it is, try to copy or move the album's description or summary to the sidebar? I haven't tried something like this, but it should all be possible since you can completely control the layout of your theme.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-09-14 19:53

There's a static html page module at http://codex.gallery2.org/index.php/Gallery2:UserContributions
probably you want something similar that creates static blocks you can then use in albums..

 
vapottery

Joined: 2004-05-30
Posts: 3
Posted: Tue, 2007-04-10 18:05
valiant wrote:
if you want to enter some text that is visible on all pages, edit themes/matrix/template/theme.tpl, you can use ordinary html there.

if you want to enter some text that is visible on all pages, but not just somewhere, you want it to be in the sidebar, edit themes/matrix/template/sidebar.tpl.

but how do you even open the .tpl files??? GoLive won't open them. all I want to do is change the text "sidebar" to "comment" since most users don't even know what a "sidebar" is.
thx.
c.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-04-10 21:24

it's a text file, use any text editor..

 
vapottery

Joined: 2004-05-30
Posts: 3
Posted: Tue, 2007-04-10 22:43

thank you mindless! And I'm afraid I'm 'clueless'. I opened it as a txt file fine, but if I'm just trying to change the actual text that says "sidebar", and I'm using the carbon template, do I do it in this file: themes/carbon/templates/sidebar.tpl ?

and if that file is right, do I change it here: <div id="sidebar" ? and just change sidebar to the other text I want? Or would I do this in a css file.

Did I mention I'm clueless?

thx for your time!
c.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2007-04-12 00:56

look for Sidebar in theme.tpl

 
vapottery

Joined: 2004-05-30
Posts: 3
Posted: Thu, 2007-04-12 19:19

Thank YOU!!!!
whew.
c.