PDA

View Full Version : Help with custom pages


Neeto
06-08-2004, 10:37 AM
Hello. Great software here! I'm currently expirimenting with it on a test site before going live. One thing I would really need to be able to use is some sort of page identifier variable. In vb, you can use THIS_SCRIPT in variables (so something will only show for the forumhome, etc). But with the custom pages that your cms makes, I have no way of determining the page. Is there some similar variable I can use?

For instance, I would like to make a downloads page, and put an "if" statement in the header template to show an image in the header if on the downloads page.

Your help is greatly appreciated.

Brian
06-08-2004, 10:38 AM
What about the $pages['identifier'] variable? ;)

Our Sponsors
 

Neeto
06-08-2004, 10:40 AM
Cool! That would be exactly what I am looking for I think. I just wasn't sure exactly how to go about using it. ;)

Neeto
06-08-2004, 10:43 AM
Hmmm, I can't seem to get it.
<if condition="$pages['identifier'] == 'downloads'"> (with downloads being the identifier I am looking for)
Also, I am trying to use this in vbulletin header, so I'm not sure if that changes things.

Our Sponsors
 

Brian
06-08-2004, 11:09 AM
Ahh, sorry about that. Try $pages['name'] instead. I forgot that I set that up as 'name' when I first started working on everything.

Neeto
06-08-2004, 11:11 AM
You are the MAN! Thanks a ton! I will TOTALLY be switching over to your program, and will eventually purchase a copyright removal. I can do it all now! I'm king of the WORLD!

Brian
06-08-2004, 11:25 AM
Haha! Thank you, and I hope you enjoy the script. :)