Different Album on each new page (without adapting template)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

Different Album on each new page (without adapting template)

Post by mev »

Hi all,
would it be possible to have different albums displayed on different page, WITHOUT having to adapt the template manually for each page?? 
My client wishes to be able to render new pages, with both normal content (text) as well as another/ different album for each page.

I now have this code in 1 template: {cms_module module='album' albums='1'}, or adapted to albums='2' in another template used for another page etc.
But in this way I would have to make x different templates for x different pages or so.
I have set no categories

Anybody knows a better way??

Thanks very much in advance !!

Willemijn
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Different Album on each new page (without adapting template)

Post by Dr.CSS »

They can put it in the content, album tag that is...

Or you could make a {content block="album"} in template for them to put the album tag in... will show up when editing page as Album: like Content:...
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

Re: Different Album on each new page (without adapting template)

Post by mev »

Thanks Mark
In that way the client himself will have to adapt the album-tag or content block, to change the album-ID  to another one, for display
right?

Willemijn
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Different Album on each new page (without adapting template)

Post by Dr.CSS »

Yes or use the area for something else...
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

Re: Different Album on each new page (without adapting template)

Post by mev »

I'm afraid that my client (owner of the site) will not prefer that..

there wouldn't be some smart smarty-tag or -script to have the template (or content block) adapted itself every time he creates a new page for a new/other album  with its own ID  ??

Sleep well
willemijn
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Different Album on each new page (without adapting template)

Post by Dr.CSS »

Unfortunately Album uses numbers for the ID so you can't call it by name like if it took names for id that you could call in a smarty var...
Post Reply

Return to “Layout and Design (CSS & HTML)”