Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default While Displaying Cats on Main Page<- Need Code Help

    Hi all,
    Thanks for reading. I've been at this a little while now but cant find what I'm looking for. I turned on the switch for display cats on main page but I would also like to have each cats subs show as well. I know this will be a code thing and am prepared. I just need a push in the right direction.

    I would like for this to work similar to Nav Cat Tabs do when one is clicked on and is now a center box showing sub cats with main cat as H1 with description under that and subs under that.

    I'm working on my wamp with DW8 so I'm going back to but will check here often for assistance.

    Thanks in advance,
    John

  2. #2
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: While Displaying Cats on Main Page<- Need Code Help

    Okay, I have a better idea. I'll write my own categories menu for include on main page.

    I'm in phpmyadmin looking at categories and categories_description. I don't see how the connection between cats and sub cats are made.

    How do I relate subcats with their parent from zc db in php?

    Thanks,
    John

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: While Displaying Cats on Main Page<- Need Code Help

    thanks Kobra but these are all sideboxes. I am trying to get a menu as a centerbox. I have been over the sidebox tpl_categories.php to see if I could use that as a starting point for my center box but it doesn't look promising either.

    I've only been at this for a year. I feel like I'm getting closer.

    Thanks

  5. #5
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: While Displaying Cats on Main Page<- Need Code Help

    Half way down this page in a div class categories is what Im trying to do minus the images(for now).

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: While Displaying Cats on Main Page<- Need Code Help

    Grab code from a sidebox that gives you what you want and transplant it to a custom tpl_main_page.php for the page where you want this display or a custom general if for all pages
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: While Displaying Cats on Main Page<- Need Code Help

    I've been doing that for most of the day. I've been trying to get the code from templates/tpl_categories.php to work. I don't have a good enough idea of what is going on in this code to do it.

 

 

Similar Threads

  1. sub cats on main page
    By gribster in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Nov 2010, 08:16 PM
  2. show sub cats AND products on main page!?
    By bonnit in forum Customization from the Admin
    Replies: 0
    Last Post: 24 Sep 2010, 02:17 PM
  3. sub cats a different colour to main cats?
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 13 Sep 2010, 04:15 PM
  4. Can I display sub cats under their main cats without having to click on main cats?
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 May 2009, 11:10 AM
  5. Products/Cats are showing twice on main page
    By gat0man in forum General Questions
    Replies: 2
    Last Post: 20 Oct 2008, 09:08 PM

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