X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding an If Statement to PageTitle.tpl (https://forum.x-cart.com/showthread.php?t=17555)

dalmuti 10-27-2005 09:41 AM

Adding an If Statement to PageTitle.tpl
 
Hello,

I am trying to add an if statement for navigational purposes that includes the help section and all static pages (as they are all help pages)

The code below works for any of the pages that are help php pages but I am not sure if there is a way to add additional if statements to include all the static pages as well. Would I have to list each static page or is there an overall statement that would work?

Code:

{if $main eq "help"}finished? Return to the home page{/if}

An example statement would be really appreciated. :)


Thanks,

Louise

balinor 10-27-2005 01:37 PM

How about:

Code:

{if $main eq "help" or $main eq "pages"}finished? Return to the home page{/if}

dalmuti 10-27-2005 03:25 PM

Thanks, that worked. It would be nice if there was a list available of all those.....like pages, help, main, etc.

Worked great!

balinor 10-27-2005 03:31 PM

Take a look at home_main.tpl, a lot of them are used there.


All times are GMT -8. The time now is 11:57 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.