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)
-   -   How to Not Load Module on Home Page only? (https://forum.x-cart.com/showthread.php?t=72537)

Freakmode 08-04-2015 10:43 PM

How to Not Load Module on Home Page only?
 
Is there a way of not loading a module on the home page but loading on all of the other pages?

I know you can use the following to only load in the homepage but I can't work out the logic.

{if $main eq "catalog" and $current_category.category eq ""}
Call module here
{/if}

Thanks

totaltec 08-05-2015 05:36 AM

Re: How to Not Load Module on Home Page only?
 
Quote:

Originally Posted by Freakmode
Is there a way of not loading a module on the home page but loading on all of the other pages?

I know you can use the following to only load in the homepage but I can't work out the logic.

{if $main eq "catalog" and $current_category.category eq ""}
Call module here
{/if}

Thanks


What about:
Code:

{if $main eq "catalog" and $current_category.category eq ""}
  Don't call module
{else}
  Call module
{/if}


? :-)

Freakmode 08-05-2015 05:56 AM

Re: How to Not Load Module on Home Page only?
 
That worked - never thought of the else bit - dohh

Thanks Mike


All times are GMT -8. The time now is 03:00 PM.

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