Different logo for different sub-albums?
|
almost
Joined: 2005-01-12
Posts: 90 |
Posted: Mon, 2006-04-24 18:52
|
|
Are there architectural issues that make it difficult to provide more flexibility for G2 logos? I've developed a need now to show a different header logo depending on where I am in a G2 gallery. I've noticed that some themes - at least PGTheme - allow me to provide a different logo for each color set, and that begins to give me what I need. But it would sure be nice to have the ability to name a logo file for each sub-album. I'm guessing if it was easy it would already be done. Am I wrong? |
|
| Login or register to post comments |

Posts: 1
please show me difeerent desighn logo
Posts: 9281
With a little change and strict naming and sizing (if you specify a size for the image in the HTML) of your logos you could do it.
Here's one way to do it.
In theme.tpl (for most themes) replace
<img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>with
<img src="{g->url href="images/`$theme.item.pathComponent`.gif"}" width="107" height="48" alt=""/>That looks for a logo with the same path as the album. My example hard codes all logos needing to be in GIF format.
This is also going to be case sensitive but you could fix that. The way it is now, if you have an album located at Temp Pics then your logo will need to be named Temp Pics.gif
NOTE: When editing templates, please follow the instructions at the top of the template and create a local directory to put your changes in or create your own custom theme that won't be overwritten on an upgrade.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here