Is there a way to add a variable to a page template so that I could have it read the parent section name and provide a different header or image without having to generate new template?
something like
img src="images/{parent}-header.jpg"
thanks.
template variable
Re: template variable
I haven't tried it yet, but this plugin sounds like it does what you want:
http://dev.cmsmadesimple.org/projects/sectionimage
"This plugin allows you to add an image to your site that displays according to the site section."
Hope this helps.
http://dev.cmsmadesimple.org/projects/sectionimage
"This plugin allows you to add an image to your site that displays according to the site section."
Hope this helps.
Re: template variable
Sectionimage is probably what you're looking for, yeah.
A quick and dirty way I've used in the past is to use something like img src="{Title}.jpg" in the template. This is less flexible, and less elegant, but works for most applications.
A quick and dirty way I've used in the past is to use something like img src="{Title}.jpg" in the template. This is less flexible, and less elegant, but works for most applications.