Go Back   3dCart Shopping Cart Software Forums > Shopping Cart Software > Store Design

Reply
 
Thread Tools Display Modes
  #1 ()  
Old 02-08-2008, 03:37 AM
bristweb bristweb is offline
3dCart Power User
 
Join Date: Dec 2007
Posts: 141
Default creating nested lists of your categories

apparently isn't possible UGH i thought i had it

Last edited by bristweb : 02-08-2008 at 04:30 AM.
Reply With Quote
  #2 ()  
Old 02-08-2008, 06:05 AM
bristweb bristweb is offline
3dCart Power User
 
Join Date: Dec 2007
Posts: 141
Default ok this is a MUST for 3.0!!

i spent now 5 hours to get this working and no breakthrough. nested lists is like....web design 101. i can't believe its not possible to do. almost EVERY navigation structure today is built using nested lists.

see this site for just a couple examples http://css.maxdesign.com.au/listamatic2/

it was one thing to find that sub-menus only go one level, but no support for nested lists whatsoever??! Not cool!

Just for clarity, i'm trying to achieve something this rudimentary:
  • category1
  • category2
    • sub category1
    • sub category2
    • sub category3
  • category3
  • category4
  • category5

of course i realize i could build these by hand, but that isn't a very practical solution...and that is the whole point of using a dynamic website! supporting this should be very easy...just a minor tweak i'm sure.

here is what i envision
Code:
<!--START: FRAME_CATEGORY--> <ul> <!--START: CATEGORIES--> <!--START: CATEGORY_FORMAT--> <li> <a href="view_category.asp?cat=CATID">CATEGORY</a> <ul> <!--START: SUB_CATEGORY_FORMAT--> <li> <a href="view_category.asp?cat=CATID">CATEGORY</a></li> <!--END: SUB_CATEGORY_FORMAT--> </ul> </li> <!--END: CATEGORY_FORMAT--> <!--END: CATEGORIES--> <ul> <!--END: FRAME_CATEGORY-->
It appears the problem is that the engine reads the entire block within the "CATEGORY_FORMAT" block and renders all of it to html. it doesn't care if some of the code belongs to the "SUB_CATEGORY FORMAT". All that would need to be done is make the "CATEGORY_FORMAT" first check the block if it contains "SUB_CATEGORY_FORMAT" block. if so, then it renders subcats first so that the result is a perfect, nested list.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:53 PM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8