| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Horizontal 'Categories' and/or 'Manufacturers' Menu Query | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Horizontal 'Categories' and/or 'Manufacturers' Menu Query
Hi,
I was looking to change the 'Categories' and/or 'Manufacturers' side menu to display as a horizontal navigation bar within the head.tpl. I realise that by far the easiest way would be to simply create a html table within head.tpl and populate it with the links but I would like to still be able to alter the menu within the admin section i.e. if I add a new category it will automatically add it to the 'Category' list as it does by default but for it to display horizontally rather than vertically. I have searched the 'Custom Mods & Templates' & others section but could not find anything that would work for the latest branch of xcart. Any assistance would be greatly appreciated.
__________________
Mike --------------------- Live 4.0.7 |
|||||||
#2
|
|||||||||
|
|||||||||
Code:
use that
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
Shan,
That works like a charm. Bostin'
__________________
Mike --------------------- Live 4.0.7 |
|||||||
#4
|
|||||||
|
|||||||
Quote:
The only problem is you get an extra "|" char at the end of the last category. I modified it and added a test: Code:
__________________
X-Cart Pro 4.0.5 Fedora Core 2 Apache 2.x/PHP 4.x MySQL 3.x |
|||||||
#5
|
|||||||
|
|||||||
This is definetly worth stashing in my bag of goodies for future reference, thanks guys.
|
|||||||
#6
|
|||||||
|
|||||||
which .tpl does this code relate to please
hi sorry to be so ignorant.....which .tpl is this code referring to ?
I've ran a find search using snippets of the code of the source ..without finding which .tpl it relates to. Any guidance appreciated. thanks chris
__________________
Version 3.5.13 |
|||||||
#7
|
|||||||
|
|||||||
The original poster wanted the categories printed at the top in a horizontal manner and the only place to put it is in the head.tpl.
__________________
X-Cart Pro 4.0.5 Fedora Core 2 Apache 2.x/PHP 4.x MySQL 3.x |
|||||||
#8
|
|||||||
|
|||||||
For reference if you want the Manufactuers list to display horizontally you can use this code.
{section name=mid loop=$manufacturers_menu} {$manufacturers_menu[mid].manufacturer}{if not %mid.last%} | {/if}</FONT> {/section}
__________________
Mike -------------- Version: 4.0.11 Live, RMA, AOM & X-Affiliate PHP 4.3.4 MySQL server 3.23.58 MySQL client 3.23.58 Web server Apache/1.3.29 (Unix) Site: http://www.clubsrefinished.co.uk |
|||||||
#9
|
|||||||||
|
|||||||||
Digging up an old topic...but with a new twist because of 4.1 Beta 2.
Here is the file: Code:
I am trying to eliminate the last bullet after the category list and {if not %categories.last%} does not work??? Any suggestions? Thanks, Louise
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
#10
|
|||||||||
|
|||||||||
Just FYI - figured it out.....correct would be:
Code:
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
|
|||
X-Cart forums © 2001-2020
|