Different images in top, for different H1 pages

CMSimple 4.0 und höher
Post Reply
valmin
Posts: 19
Joined: Tue 21. May 2013, 14:11

Different images in top, for different H1 pages

Post 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
pergachris
Posts: 33
Joined: Sat 29. Dec 2012, 18:58

Re: Different images in top, for different H1 pages

Post 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
Gert
Posts: 2075
Joined: Sun 18. Nov 2012, 14:18

Re: Different images in top, for different H1 pages

Post 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
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Post Reply