Post by tonysm » Thu Jun 05, 2008 4:33 pm

I am designing a catalogue for a company that has 50 or so subcategories inside around 10 main categories. All categories and sub categories has to be displayed in the left hand side. I have managed to display it in a tree fashion but I need to when click on the main category to open below the subcategories and when clicked again to close, like a folding menu. Is it possible, can somebody help me?

Newbie

Posts

Joined
Thu Jan 10, 2008 4:05 pm

Post by JNeuhoff » Fri Jun 06, 2008 1:26 am

Is is possible, but would require some PHP programming work.

There are 3 ways to do that:

1) Use server-side session object storing the tree, including the tree state, along with an appropriate viewer logic.
    (See e.g. http://www.histpop.org)
2) Use client-side Javascripting in the template which again stores the tree and tree state.
3) Use a CSS-driven tree (see e.g. http://www.vcsproducts.com.au)

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by bruce » Fri Jun 06, 2008 8:54 am

... and if you are feeling really adventurous?

You could extend the server side idea by using AJAX. OpenCart already uses JQuery.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm
Who is online

Users browsing this forum: No registered users and 4 guests