Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2007
    Posts
    4
    Plugin Contributions
    0

    Default where is the code is the categories on the sidebar generated?

    Hi,

    Where in the source code is the categories on the left side bar generated? (please tell me the file to look at).

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

    Default Re: where is the code is the categories on the sidebar generated?

    /includes/templates/your_template/sideboxes/tpl_categories.php.

    The list of categories to display is generated by /includes/modules/sideboxes/your_template/categories.php.

    If you want to modify the output or formatting, you might look at Categories Dressing for ideas, as well as threads in the forum.

  3. #3
    Join Date
    Dec 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: where is the code is the categories on the sidebar generated?

    Thanks Glenn!

    Ok so now where in the code is this tpl_categories.php being called from?

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: where is the code is the categories on the sidebar generated?

    Before you modify any code - be sure to read the tutorials about creating your custom template overrides.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: where is the code is the categories on the sidebar generated?

    It sounds like you're jumping in headfirst. Before you do a lot of recoding, what are you trying to accomplish? We may be able to guide you to the most efficient/effective methods if we know what you want to do.

    And yes - make your own custom template structure before doing any editing of files.

  6. #6
    Join Date
    Dec 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: where is the code is the categories on the sidebar generated?

    oh I am just trying to get a feel for how things work.

    Specifically with the category display, I want to know how many levels I can display i.e. top category, then sub category and then sub-sub-category all on the sidebar.

    I think 2 levels is enough anyhow, or for it to show the top level, then when someone clicks on one of them it displays the subcategories for that level ONLY along with the other top categories.

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

    Default Re: where is the code is the categories on the sidebar generated?

    Have you made a test installation yet? The installer doesn't really emphasize enough that it is *very* worthwhile to install the demo products when you begin.

    If you have the ability to make a second database, you will benefit from having a second installation in a subfolder that is just for reference, as the demo products all show you how to do various things.

    The categories menu does show all top cats and the subcats of the current path; there is no practical limit on subcat depth. There are also mods available to expand the category tree completely all the time, or limit the expansion as desired - anything is possible.

 

 

Similar Threads

  1. Need additional categories in the sidebar that do not appear in the main nav
    By LizNix in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 11 Jul 2011, 11:58 PM
  2. where is the html element generated?
    By commonn in forum General Questions
    Replies: 2
    Last Post: 25 May 2010, 01:28 PM
  3. The order of categories on the sidebar
    By MF Handbags in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 31 Dec 2009, 11:17 AM
  4. PDFOC Where's the shipping text generated in the PDFOC invoice template
    By gamenano in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Sep 2009, 11:39 PM
  5. Replies: 0
    Last Post: 1 May 2007, 08:02 AM

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