Page 1 of 1

Different images in top, for different H1 pages

Posted: Thu 23. May 2013, 10:59
by valmin
Hi,

I would like to have different images in top for different H1 pages.
I hope someone can tell me how to do it.
Im using a template called globe

best regards
valmin

Re: Different images in top, for different H1 pages

Posted: Thu 23. May 2013, 12:44
by pergachris
Hi,

there a re different ways to do this.

At the beginning I chose for each different H1 page a different template.

At the moment I use a plug in that is namend "coco". This plugin creates a second content area.
I put this second content in the header with an image inside.

Look at this:
http://biotopfonds.kjs-borken.de
or
http://kjs-borken.de/

regards

Re: Different images in top, for different H1 pages

Posted: Thu 23. May 2013, 12:51
by Gert
pergachris wrote:there are different ways to do this.
That's true, and a standard solution is not available in CMSimple.

Another way is to set a variable on the page content:

Code: Select all

#CMSimple $headerimg="./userfiles/images/header01.jpg";#
... and use this variable in the template.htm, for example:

Code: Select all

<div id="header" style="background: url(<?php echo $headerimg; ?>) right top no-repeat">
Consider: You will see the different headerimg in the backend only in view mode (and not in edit mode),

Gert