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

How to Not Load Module on Home Page only?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-04-2015, 10:43 PM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default 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
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #2  
Old 08-05-2015, 05:36 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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}

?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 3 users thank totaltec for this useful post:
elmirage001 (08-08-2015), Freakmode (08-05-2015), qualiteam (08-06-2015)
  #3  
Old 08-05-2015, 05:56 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

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

That worked - never thought of the else bit - dohh

Thanks Mike
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
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 10:57 PM.

   

 
X-Cart forums © 2001-2020