I have a webpage, where I want to see different banners on each page. I have files baner_1.jpg, baner_2.jpg, ...baner_n.jpg prepared in templates/mytemplate/images folder.
I template.htm I adder
Code: Select all
<?php echo tag('img src="' . $pth['folder']['templateimages'] . $headimage.'.jpg"');?>
Code: Select all
{{{$headimage = "banner_1";}}}
I also tried to use morepagedata plugin, but I can't set it correctly. Something is missing in the help file or I do something wrong.
But why this simple way doesn't work?
Using hi_pd_scripting it works, but the variable must be added to each corresponding page.