49
Quote:
Wilco wrote:
Yes indeed Slyss, it's a great improvement for me!
It works perfect...
Nevertheless, I am searching for a similar but more specific hack. I appreciate your contribution but unfortunately it is not what I want.
I want to manage banners in blocks not only limited within modules but within pages in that module. I'll give an example:
I want to show a specific banner in the module news on this story:
../modules/news/article.php?storyid=1
I want to show a different specific banner on
../modules/news/article.php?storyid=2
Can that be done? Is it what others also want/need?
Please give your feedback.
THX
Wilco
simple
in a PHP block insert:
$storyid = empty( $_GET['storyid'] ) ? 0 : intval( $_GET['storyid'] ) ;
if(storyid == 1) {echo getbanner_from_id_banner(ID_BANNER_1);}
if(storyid == 2) {echo getbanner_from_id_banner(ID_BANNER_2);}
....
and place this block on NEWS pages
that's all!!! :-p