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
Posts: 32509
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.
Posts: 3
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.
Posts: 16504
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.
Posts: 8601
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..
Posts: 3
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.
Posts: 8601
it's a text file, use any text editor..
Posts: 3
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.
Posts: 8601
look for Sidebar in theme.tpl
Posts: 3
Thank YOU!!!!
whew.
c.