| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
top_menu.tpl - disappearing links | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I am currently constructing the following page:
http://www.mineandmillindustrialsupplyco.com/home.php (they wanted that horribly long name) The customer has requested that when he is on the home page, the link in top_menu for home disappears. Normally this wouldn't be an issue as I could apply the red background color as the color for the active link. However the customer also wanted me to put that text about Industrial Quality Since 1909 next to the link for home. This is where the problem is, I need that link to completely disapear while a user in on the home page so that the Industrial Quality text moves over to the left where the link would normally be. When I just turn the text to red when on the home page, it leaves that space where the link is and makes the text look like it is mis-aligned with the links for Shopping Cart and Contact Us. Does anyone have any ideas? |
|||||||||
#2
|
|||||||
|
|||||||
![]() Yes, you will want to use an {if} statement. Here's an example:
{if $main eq "catalog" and $current_category.category eq ""} Display link you want on home page only {else} Display link you want everywhere else {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() I ended up having to hard code the whole top_menu table in the header.tpl to make it look right but the if statement worked great, thank you.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|