Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

help with "if url display this, else display this"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-04-2007, 09:10 PM
 
itsmeee itsmeee is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 56
 

Default help with "if url display this, else display this"

I'm new to php & smarty languages so I'm sure this will be pretty easy. I'm trying to make my side navigation change on the help.php and ?section=* pages so they are different from the rest of the site. Here is what I tried but it didn't seem to do anything. I've been going through the smarty website but I'm a little in over my head I think.

Code:
{if $smarty.get.pageid eq "help.php"} content {else} other content [/if]
__________________
Version 4.1.8
Reply With Quote
  #2  
Old 12-05-2007, 04:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: help with "if url display this, else display this"

Not quite right. Try this:

{if $main eq "help"}

show this

{else}

show that

{/if}

You can see many of the $main variables in skin1/customer/home_main.tpl and help/index.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-05-2007, 07:06 AM
 
itsmeee itsmeee is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 56
 

Default Re: help with "if url display this, else display this"

Thank you so much, that worked perfectly
__________________
Version 4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:06 PM.

   

 
X-Cart forums © 2001-2020