Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2009
    Posts
    2
    Plugin Contributions
    0

    Default Category Tabs - Create nested list of Cats & Subcats

    HI,

    I am struggling to find a clear answer as to how I could generate a nested list of categories and subcategories for use in the Category Tabs. Basically all I need is a list in the form:

    Code:
    <ul>
       <li>Category Link
           <ul>
               <li>Subcategory Link</li>
               <li>Subcategory Link</li>
           </ul>
       </li>
       <li>Category Link
           <ul>
               <li>Subcategory Link</li>
               <li>Subcategory Link</li>
           </ul>
       </li>
    </ul>
    I have links other than top level Categories that I want to appear there so I have been working with the tpl_modules_categories_tabs.php file. $links_list is a list of the top level categories but I need also a subcategory list for each top level category.

    I am not a seasoned php coder so I'm a bit lost and appreciate that I could be over or under complicating things. I have searched the forums but haven't found any answers at my level. I looked at CSS Horizontal Drop Down Menu but it just seems to make a dropdown of the whole Categories list which is not quite what I'm trying to do. Is there a simple answer to this problem?

    Thanks

    Mike

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    If you want the nested subcat lists like you show, you will need something like the categories CSS dropdown generator to get it. You can strip the dropdown part of the code/CSS and style the lists as you wish.

  3. #3
    Join Date
    May 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    Thanks for your response. I managed to fix it by borrowing the class file fry CSS Flyout menu to generate my list. Then I inserted the extra li tags for my custom links before printing it all out. The code my not look pretty and certainly won't win me any awards but the result is bang on. Thanks for your help.

    Long live the Open Source Community!!

    Mike

  4. #4
    Join Date
    Mar 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    Hi Mike

    I am currently trying to re-design the horizontal menu to look like littlewoods.com is that what you managed to do if so can you let me have a little more informatin on how you managed it.

    Thanks
    Brad

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    What you are looking for is just a variation on a CSS dropdown menu, available from Free Addons. Your reference shows the entire subcat list for a top cat in one box, but that should be achievable by tweaking the dropdown structure.

  6. #6
    Join Date
    Mar 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    Hi

    Thanks for your reply, as you suggested i have tried looking at the coding for the generator to tweak this code as i thought this might hold the key but i am a little lost. i currently have modified the flyout horizontal menu to show the top level of categories as the main links rather than teh contact us and my account etc... i would now like the flyout menu's that come down from them top level of categories to show one level down in larger text and then the following sub categories as shown on the littlewoods.com website.

    Any help would be much appreciated, or some direction as to where i should be looking if i'm in the wrong place.

    Thanks
    Brad

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    There is more than one CSS menu mod - be sure you have the one that already handles categories. That will have the code for you to tweak. One that doesn't handle categories will require you to start from scratch.

  8. #8
    Join Date
    Mar 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    I've tried installing the following two version are these the ones that you were talking about

    CSS Flyout Menu
    Last Updated by: Get Em Fast May 28 2009 v1.3.8 1.3.8

    CSS Horizontal Drop Down Menu
    Last Updated by: Jade True - SageFish.com Jan 18 2008 v1.3.8 1.5

    i've currently got the css flyout menu version 1.3.8 installed but this seems to be a sidebox rather than a horizontal menu, and i've also installed the second one which is the one that i have changed the code for showing top level categories on the header menu.

    Thanks
    Brad

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    CSS Horizontal Drop Down Menu
    Version: 1.5
    Last Updated: Jan 18 2008
    Author: Jade True - SageFish.com
    This add-on will allow you to have a horizontal css based flyout menu for your zen cart header. It also displays your categories dynamically,

    This should be the one to use. I haven't looked at it so can't advise on modifying it. Ask in the support thread for the mod.

  10. #10
    Join Date
    Mar 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Category Tabs - Create nested list of Cats & Subcats

    Thanks for help glenn i'll try the support thread for this mod.

    Thanks
    Brad

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Clickable links to cats & subcats in ADMIN?
    By shartlesville in forum Basic Configuration
    Replies: 4
    Last Post: 23 Oct 2011, 12:50 AM
  2. Display product list for subcats, not top level cats
    By swamyg1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jul 2011, 12:12 AM
  3. CSS Horizontal Header w/ Cats., SubCats and Ezpages
    By mkopecky in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Oct 2009, 09:22 PM
  4. Adding deeper subcats as links in cats on index page
    By lankeeyankee in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Oct 2007, 03:25 AM
  5. Copying subcats to other main cats?
    By gsdcypher in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 25 Jul 2007, 01:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR