| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to hide a div block on all pages except home page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I want to hide a block on all pages except homepage. The code will be something like {if:node.name="#home#"} <div> Hi </div> {else:} <div> Test </div> {end:} Can someone please help. Thanks in advance. |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Depends on where this shows. If you need it in the body of the page just include it in skin1/customer/main/welcome.tpl
If it's in the head section you can use {if $main eq "catalog" and $current_category.category eq ""}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() I am sorry to mention that I am using x-cart 5 version. This code only work on older version of x-cart.
|
|||||||
#4
|
|||||||||
|
|||||||||
![]() Oh sorry. I saw 4.1 in your signature and thought you are using XC4
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() any solution for xcart5 ?
|
|||||||
#6
|
|||||||||
|
|||||||||
![]() Hi!
Similar task was covered by webinar: http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(CustomSkinsandWebmasterKitmodulesintro)-2.HowcanIwrapthe<divid="content">onhomepageinto<di vid="homepage">? Please check out the article and let me know if it helps. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|