Page 1 of 1

Different Album on each new page (without adapting template)

Posted: Mon Aug 27, 2007 4:53 pm
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

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

Posted: Mon Aug 27, 2007 5:03 pm
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:...

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

Posted: Mon Aug 27, 2007 9:04 pm
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

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

Posted: Mon Aug 27, 2007 11:06 pm
by Dr.CSS
Yes or use the area for something else...

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

Posted: Mon Aug 27, 2007 11:35 pm
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

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

Posted: Tue Aug 28, 2007 12:06 am
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...