I am a CMSimple beginner and just love it! Iam currently creating a website that requires a different background image in one of the divs on each page.
I searched a bit for a solution of my problem and found this:
http://cmsimplewiki.com/doku.php/tips_a ... background
Looks like excaclty what I need. But...for some reason it doesn´t work for me and I just cannot find the mistake. Does anyone know what´s the problem?
I inserted this code in my template.htm (in my div"contentbox"):
Code: Select all
<div id="contentbox" style="background:url(<?php if ($mybackground==''){echo $pth['folder']['templateimages']; ?>default<?php }else{echo $pth['folder']['templateimages'].$mybackground;} ?>.jpg) no-repeat center 0px;"><div id="admincontent"><?php echo editmenu();?>
<div id="pagecontent"><?php echo content();?><?php echo submenu();?></div>
</div></div>
</div>
Here you can see the site where I tried all this: http://www.klemenssander.at/seitenkunst/hwq/
For the beginning, I wanted to switch the background of "contentbox" on the page "termine" to 2.jpg and inserted this code: #CMSimple $mybackground=”2“;# .
Also tried 2.jpg etc...but it just won´t work.
Thanks for any help!