Jump to content

Top Nav Menu


kinchi

Recommended Posts

Please look at the skin template box.navigation.php. There you will find the hard-coded links to Gift Certificates and Sale Items.

To suppress the display of the links regardless whether they should sho or not, add a 'false' to the if test:

{if false && $CTRL_CERTIFICATES && !$CATALOGUE_MODE}

{if false && $CTRL_SALE}

Using the same HTML <li> tag format, add your custom links here.

Link to comment
Share on other sites

wow this menu is stubborn! 

I modified as you said and it has no result? both the certs & specials still show? 

Im just thinking about this... so Im requesting "if the specials byte is not decalred? or "if" specials do not exist?  Im guessing if no products are on sale then it will automatically not populate the specials link, I do have sale items I just dont want it in the top nav bar

It seems like once the {catagories} variable is called it automatically generates the link before my code is executed,

I have included a copy of the file box.navigation.php... is there anything else I need to do?

thanks again bsmithers... your a lifesaver!

box.navigation.php

Link to comment
Share on other sites

I would like for you to clear the skin cache (admin, Maintenance, Rebuild tab, check Clear cache). Perhaps the template rendering engine is still using cached copies of the compiled skin templates.

In looking at your file, two things:

I do not recall what {$CATEGORIES} has as its contents. But true, if {$CATEGORIES} is not empty it, and not the rest of the template, will display.

There has been more than the suggested changes made. Specifically, I suggested changing only the {if} expression to result in an absolute false - false && anything = false - but the contents between the {if} and {/if} has been removed. That wasn't necessary and now you must find an unedited copy of the template if you wish to restore that data to be displayed.

Link to comment
Share on other sites

thats no problem, I always download the original to my computer when I edit a file incase I need to recover it.

I was wondering about the cache, but I was leary because whenI cleared the image cache some items lost thier photos for some reason, im not sure how that feature works, I cleared the image cache when first started listing items I had to update and swap some item photos until I worked out the best size & format for images

what is the proper procedures for using functions & clearing image cache? when should we rebuild? after every cache wipe? 

Link to comment
Share on other sites

also just I removed them just to see if they were the culprit then the above failed and I couldnt remove them from the menu, I will recover them lines of code,  I do have it noted "todo" & I realize that could lead to issues leaving holes in code like that..

I did the cache as you said and special is still displayed...  I cleared everything but the image cache since I not sure about that feature...

Do you see the "specials" cagtagory in the top navbar? 

www.kinchi.ca

 

Link to comment
Share on other sites

On your site, after Bracelets, I see Specials, then Gift Certificates.

Originally thinking you had renamed Sale Items to Specials, I was giving you instruction on how to remove Sale Items from the menu bar.

I see that Specials seems to be a typical category because Sale Items (perhaps renamed to Specials) would be placed on the menu after Gift Certificates.

If Specials is a regular category, then the admin can disable and/or hide it in the admin Categories List.

Gift Certificates can be administratively disabled (but not hidden).

Link to comment
Share on other sites

I tried to do this just now and noticed similar resistance

 

        <!--
        {if $CTRL_CERTIFICATES && !$CATALOGUE_MODE}
            <li><a href="{$URL.certificates}">{$LANG.navigation.giftcerts}</a></li>
        {/if}
        {if $CTRL_SALE}
            <li><a href="{$URL.saleitems}">{$LANG.navigation.saleitems}</a></li>
        {/if}
    -->

I just cleared all caches and it sorted it out

Edited by Lastwolf
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...