| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
New Main/Root Categories Page Mod needs last bit of help | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am so close to posting a new mod for a main/root categories page that uses content from a static page and a dynamic listing of root cats, but i don't know how to show the root cat icon.
Basically i took code out of subcategories.tpl and modified it to list root cats then inserted it into an if statement inside pages.tpl that tests if we are on the root cat static page. See moded pages.tpl below: Code:
This line should show the root cat icon but it is still for subcat icon: <TD valign="top" rowspan="{count value=$categories print="Y"}"><IMG src="{if $current_category.icon_url}{$current_category.icon _url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}"></TD> Any ideas?
__________________
Version 4.1.3 |
|||||||
#2
|
|||||||
|
|||||||
![]() Try this:
Code:
- Mike
__________________
4.1.9 |
|||||||
#3
|
|||||||
|
|||||||
![]() are you displaying a categories listing with icons on the main page?
if so, look at http://forum.x-cart.com/showthread.php?t=32237 , I made a similar mod but if I remember correctly, I used welcome.tpl to insert my code to put it at the top and in a seperate section |
|||||||
#4
|
|||||||
|
|||||||
![]() Hey you guys, thanks for the help.
The technique I used was to create a static page for my Main/Root category page - so the client could insert copy in it easily. I do that by modifying pages.tpl with an if statement to include categories.tpl - see Beginners Example of Static Page with Dynamic Content. I tried modifying categories.tpl to show icons (from within pages) but to no avail. I think i already tried mffowler's example code earlier and it didn't seem to work. Eventually I gave up and the client is happy not having the icons so if we figure this out now - I guess it would be to complete a mod for x-cart users' sake.
__________________
Version 4.1.3 |
|||||||
#5
|
|||||||
|
|||||||
![]() you may want to look at http://forum.x-cart.com/showthread.php?t=32195 ? it uses positioning rather than id number
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|