Closed (fixed)
Project:
Custom Page
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2009 at 22:04 UTC
Updated:
13 May 2009 at 18:00 UTC
I am trying to have different banners on each page.
in page.tpl.php i was trying this code, Am i on the wrong path or is there a completely diff way I should be doing this?
if($key == "page2") { Page2
} else { Other page }
Thanks in advance
Comments
Comment #1
drskitzo commentedComment #2
irakli commentedNot sure if this has anything to do with CustomPage per se (I'd guess - no), but as a general comment you check the URL parts by looking checking them with arg([index]) function, not with a $key variable. That variable does not seem to be defined in your code.
Hope this helps.
Irakli
Comment #3
drskitzo commentedcan you be kind enough to give me an example of how I'd use the arg([index]) function for my purposes? :)
Is there a way I can get the $key defined in my code? Is there a file I need to include or whatnot?
Thanks in advance! :)