PDA

View Full Version : Conditional for identifier


Lionel
09-09-2006, 01:08 PM
I would like to create a conditional for a page identifier index.php?page=xyz

what should I use to display only for xyz?

thanks.

eJM
09-09-2006, 05:42 PM
I don't understand the question. Are you asking how to make the page come up as yoursite.com/xyz.php instead of yoursite.com/index.php?page=xyz?

Jim

Our Sponsors
 

Lionel
09-09-2006, 08:20 PM
I need to display something only for a specific page and not for this_script==vb_advanced

<if condition=="page_identifier">do this</if>

Apoco
12-07-2006, 01:47 AM
I would like some more information on this too. I am trying to have something show on one page but not the others of the cms page. ie:
www.localhost.com/index.php is the cms
www.localhost.com/index.php?page=test
I am using the html

<if condition="(THIS_SCRIPT == 'adv_index')">This</if>
to do one thing ONLY on the cms page.

however I need something to show only on the index.php?page=test
page. I tried putting the define('THIS_SCRIPT', 'test'); in the included php file for the page, however it did not work. Any ideas? ~_~;;

Our Sponsors
 

Lionel
12-07-2006, 03:38 AM
<if condition="$pages[name]=='test'">


(Edited: You missed a "=" ;))

Apoco
12-07-2006, 11:41 AM
Thanks, worked perfectly after I added in a second = you had <if condition="$pages[name]='test'"> it should be <if condition="$pages[name] == 'test'">

;-)