Hierachial Select (@Worldfallz)

bstrange - June 20, 2009 - 03:45

Ok several weeks ago, we discussed using building block modules such as CCK, Views, Panels, etc as the foundation for 6x Drupal sites as opposed to single purpose modules that were commonly used in Drupal 5x and prior.

I mentioned that the site I am building is to showcase local businesses and that I wanted to add an element to CCK forms to let a business submit itself under various categories; and you recomended Hierachial Select as a module that would be good to use. It is a stand alone module and thus went away from our previous discussion about using 'non building block' modules but you felt it would work best.

So I have played with this mod and taxonomy and entered terms categories, sub categories, and sub-sub categories. I then used Hierachial Select and CCK to create a form that would allow businesses to insert their business under various Main Categories, Sub Categories and so on... So far so good, Hierachial Select is working perfectly...

Then, after 3 weeks of term input and playing with CCK, Views, and H-Select, I came across a stumbling block a few days ago. The way the front page is going to look is I am creating a static Panel under the header that will have the various terms so basically:

HEADER
_________________________________________________________________________
(Link Navigation)

Automotive || Restaurant || Entertainment <-------Main Categories
Dealerships || Chineese || Amusement Parks <------------------------------- Sub Categories
Serivce || Italian || Movie Theaters <------------------------------- Sub Categories
Towing || Pizza || Water Parks <------------------------------- Sub Categories

__________________________________________________________________________

CONTENT

The problem I am having is that while Views will let me create a view that consists of Taxonomy terms, I have not been able to create a view that kept them in Main Category / sub category format, even when I have tried different filters and sorts etc. No matter what I try it lists every taxonomy term alphabetically.

What I wanted was a Navigational Link Section that would either allow people to click on a main category which would then take them to a page that listed all the sub categories which then would allow a sub category to be clicked on to see the businesses listed in that Hierachy, Or a view that would allow the Hierachial Table to be presented in a view (much like the example above) that people could click directly on a link from.

Alternately I thought I could simply take the Taxonomy Links (to preserve the structure) such as http://www.sanduskyspotlight.com/category/business-category/accomodations and edit the term page to list all the sub terms.

The problem is nothing seems correct... I have built numerous Drupal 5x sites and most have been cobbled together with dozens of single use mods and I am trying desperately to build sites the 'correct' way (such as not using a stand alone module to do something that could be replicated in Views for example).

I have honestly read tons of Views tutorials and searched for answers to this specific problem myself, and can find nothing... any suggestions? You have given me some very good starting places in the past and I was hoping for even a nudge in the right direction :)

I was going to email you and asked but I thought if I asked on the forum, the next time someone searched for a similar problem's solution online they might come across this thread :)

Thanks in advance :)

any thoughts?

bstrange - June 22, 2009 - 19:21

any thoughts?

_

WorldFallz - June 22, 2009 - 20:09

Sorry-- not sure how I missed this earlier.

In any case, you've stumbled upon a weakness of the hierarchical taxonomy system. Previously I handled this with the views_bonus and lineage modules, but it appears the lineage part of views_bonus has not been upgraded yet. The lineage module does add a "taxonomy: hierarchy" field and sort to the list of fields available to views, but I haven't figured out what to do with it yet.

In this case I would probably go with the http://drupal.org/project/taxonomy_treemenu and/or http://drupal.org/project/vocabindex modules (or just code it myself).

Using building block modules is a general philosophy I employ, but that doesn't mean there won't be times when the best choice is a narrow function module.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

no problem, and no reason to

bstrange - June 22, 2009 - 20:38

no problem, and no reason to apologize.... you answer a ton of questions all the time and quite frankly have no idea how you keep up with them all!

I will check out those modules and see what I can do :)

I had another thought that maybe you could add your thoughts on. I could, define pages with static links etc for each category/ sub category, etc and then use panels to creats a half page link menu to those pages.

Would it then be possible to make a CCK form that ONLY submitted entries into whichever category pages the form was linked off of? and would it be possible to create views that auto populated pages based off which navigational level of the site the form was submitted into.

This is just a theory I had thinking back to when I designed pages using straight HTML many years ago... I am thinking it is probably a flawed approach, but thought I'd ask

Oh and again, thanks much for the reply and pointing me in the right direction :)

Ok looking at the modules you

bstrange - June 22, 2009 - 23:52

Ok looking at the modules you recommended, I think they will work for what I am looking for!

Thanks again :)

_

WorldFallz - June 23, 2009 - 01:43

Excellent -- happy to help ;-)

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

 
 

Drupal is a registered trademark of Dries Buytaert.