Display Sub Category in Accordion

Discussion in 'Modules / Plugins / Modifications' started by hel68c, Aug 26, 2008.

  1. hel68c Customer

    Do you know where I can find a script that I can integrate in home.tpl to have a display like accordion in my sub category?

    Thanks!
  2. guillopuig Customer

    no reply here?

    its an interesting option to have.
  3. damiun Customer

    @hel68c

    So you are looking for a accordion script?

    Accordion v2.0 Demo

    Or email templatecodes and ask their permission because they are also using a kind of accordion for their doc system (to see this go to your web administration - modules - find a templatecodes module - click the question mark and choose for "documentation"

    And about the categories,
    I am not sure how to do so, i like the idea though.
    I dont think this has to be that difficult,
    just the head category as the clickable accordion part, and the subs underneath.
    Just have a look at the source code of the accordion,
    first try to make it work without the categories and try , justy try.

    And if you need help, just ask for it,
    I will try it also in a few days,...

    If i have it done i will pm it to you.
  4. guillopuig Customer

    Danium,

    did you have luck with this?
  5. seymourjames All Hands On Deck

    If you are using it within your same installation/directory you can use the existing accordion that you have. Why complicate matters.
  6. guillopuig Customer

    Fair enough... Will try it this week.
  7. guillopuig Customer

    David.
    id like to have categories show up and auto populate as accordion headings and subcategories as accordion sub-headings under its appropriate category to be placed as a stand alone accordion on the side column.

    Could you please share some insight as to how to tweak the current accordion menu. I will be duplicating it.

    Thanks!
  8. seymourjames All Hands On Deck

    The normal accordion uses a standard plugin supplied by 68C to generate the main categories - function.categories_parent.php. This is used by the templatezones module (specifically templates/categories.tpl). It is being called like this {categories_parent}

    In order to make it display subcategories you will need to make a similar plugin which also renders the subcategories (instead) and call that plugin from categories.tpl . It may or may not help there is another plugin you might be able to use function_categories_js.php . What is really needed is a plugin where you enter the category and it returns all the subcategories for it. The job will then be a lot easier.

Share This Page