Hi,
I am busy realising my first page with cmsms and I love the system!
I have created a css-template with a content section, a header, etc. Now I would like to be able to change the header image for each content (subpage).
The only solution I came up with is including more of the css (div tags) in the content so that the header images are actually part of the content - which I don't really like...
Has anyone a better solution for this problem. What I propably need is a tag in which I can set the parameter for the images that are used in the template, or something similar?!?
THANKS, Hannes
changing the header image for each subpage?
-
cyberman
Re: changing the header image for each subpage?
Welcome on CMSms forum!
Search is your friend
- maybe this can help
http://forum.cmsmadesimple.org/index.ph ... 565.0.html
Search is your friend
http://forum.cmsmadesimple.org/index.ph ... 565.0.html
Re: changing the header image for each subpage?
Hi,
Thanks for the hint!
I have read the thread before, but unfortunately my problem can't be solved with css.
The header I am using is a slideshow Javascript that takes all images that are placed in a certain div container and creates a lovely slideshow... This means I need to place several pictures in that div.
Unfortunately I cannot use a Flashmovie either because my drop down menu need is displayed over the header.
The only solution I came up with is to use tags for the css-containers and put the whole thing in the content.
{header_start}
{header_end}
{content_start}
blablablablabla
{content_end}
But I don't really like the idea to mix layout and content!
Have you got a better solution?
Thanks, Hannes
Thanks for the hint!
I have read the thread before, but unfortunately my problem can't be solved with css.
The header I am using is a slideshow Javascript that takes all images that are placed in a certain div container and creates a lovely slideshow... This means I need to place several pictures in that div.
Unfortunately I cannot use a Flashmovie either because my drop down menu need is displayed over the header.
The only solution I came up with is to use tags for the css-containers and put the whole thing in the content.
{header_start}
{header_end}
{content_start}
blablablablabla
{content_end}
But I don't really like the idea to mix layout and content!
Have you got a better solution?
Thanks, Hannes
-
cyberman
Re: changing the header image for each subpage?
It's not a solution with only CSS, it's Smarty too
. You can use Smarty as switch.
So you can access for instance page alias of every page via {$page_alias}. So it's possible that header shows only a page related header. Please look
You have only to rename the pictures. All image names of page with alias "home" must be renamed to "home-img1.jpg", "home-img2.jpg", "home-img3.jpg", the images of page alias "contact" must be named as "contact-img1.jpg""contact-img2.jpg""contact-img3.jpg" and so on ...
So you can access for instance page alias of every page via {$page_alias}. So it's possible that header shows only a page related header. Please look
Code: Select all
{header_start}
<img1 src="uploads/images/header/{$page_alias}-img1.jpg" />
<img2 src="uploads/images/header/{$page_alias}-img2.jpg" />
<img3 src="uploads/images/header/{$page_alias}-img3.jpg" />
{header_end}-
BoHendriks
Re: changing the header image for each subpage?
Hi there peeps!
Is it possible to read-out the not the sub menu page but the first menu item? Example i go to: Contact --> route... i want to read out the first item... in this case Contact...
Thx!
Is it possible to read-out the not the sub menu page but the first menu item? Example i go to: Contact --> route... i want to read out the first item... in this case Contact...
Thx!

