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
Different Album on each new page (without adapting template)
Re: Different Album on each new page (without adapting template)
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:...
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)
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
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)
Yes or use the area for something else...
Re: Different Album on each new page (without adapting template)
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
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)
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...