Page 1 of 1

Album - need to remove title

Posted: Tue Apr 29, 2008 9:56 am
by alfblack
Specs:
CMS Made Simple 1.2.3 "Black Rock"
PHP 5.2.3-4
MySQL 5.0.27-1
Apache 2.0.52-32.3
running on Linux (Centos 4)

CMS Module:
Album 0.9.3
using the tables layout.

Goal: To remove the automatically generated "album title" so I can use my own css formatted title. The album's title is formatted with h3 tag. But the H3 is formatted differently.

Maybe you have an alternative so I can format the album's css tag.


What I DID:

I have edited the file
\modules\Album\templates\db\categories.tpl

But my changes are not taking effect.

ORIGINAL CODE:
{section name=album loop=$categories}

{$categories[album].category->name}
{if !empty($categories[album].category->comment)}{$categories[album].category->comment}{/if}
{$categories[album].albums_content}

{/section}



{/section}


I was thinking it might be smarty caching. so a bit of googling and code this code snippet to clear all smarty tags.



clear_all_cache();
?>




Unfortunatly, that didnt help. I've also used the CMS optoin to clear cache.
Site admin > Global Settings > Clear.

Still no reaction.

Help?

Re: Album - need to remove title

Posted: Tue Apr 29, 2008 10:50 am
by alby
alfblack wrote: Specs:
CMS Made Simple 1.2.3 "Black Rock"
PHP 5.2.3-4
MySQL 5.0.27-1
Apache 2.0.52-32.3
running on Linux (Centos 4)

CMS Module:
Album 0.9.3
using the tables layout.

Goal: To remove the automatically generated "album title" so I can use my own css formatted title. The album's title is formatted with h3 tag. But the H3 is formatted differently.

Maybe you have an alternative so I can format the album's css tag.


What I DID:

I have edited the file
\modules\Album\templates\db\categories.tpl

But my changes are not taking effect.
Are you sure that it's your template?
Check in Content > Photo Albums > Templates  for your template

Alby

Re: Album - need to remove title

Posted: Tue Apr 29, 2008 5:01 pm
by alfblack
Thx for the reply.

I did try editing Tables.tpl
I put in a little message so I know which file I was editing. tables.tpl was unfortunatly below the title. So it doesnt contain the code that generates the title. :(

I checked the outputed html. As far as I can figure out. It contains the html code



So I searched the source.. only categories.tpl contained the phrase.

Re: Album - need to remove title

Posted: Thu May 01, 2008 4:42 pm
by Dr.CSS
If you are calling a set of albums on a page it will use a diff. template than the albums themselves, when you choose a template for the album it is just for the album when you choose that album from the others...

If the h3 that is auto generated and not looking right is under the then you can use your style on it by using this...

.album_content h3 {your styling}