Khalid,
I have a feeling that your response to the site configuration challenge holds within it a possible workaround to the much debated problem of hierarchical menus when using taxonomy in drupal. Here is what you said:
First, I will add a taxonomy vocabulary, then terms under it, For example, Home, Services, About. Can add Demos, Case Studies, ...etc. if needed...Third, go to the theme configuration and add primary and/or secondary links with Home, About, Services, Products, Contact or whatever else you want.
When I first read it, my immediate reaction was that it wouldn't work because drupal doesn't give an index page to a vocabulary (only to the terms), so how would you be correct about using taxonomy terms as primary links which I interpret as the main sections of the site.
I then realised that you meant setting up Home, Services, About etc as terms of a vocabulary. This vocabulary could be called 'Site Navigation' or whatever and as the vocabulary was a level higher and didn't have to be displayed, essentially the terms would become the main sections of the site.
And, as we all know, a taxonomy term has an index page, and can be manipulated in many ways with modules such as taxonomy_context, taxonomy_menu, taxonomy_block and taxonomy_dhtml.
As a non-programmer, this came as a eureka moment for me, although many months ago, someone suggested something similar- using the vocabulary name for the first term of the vocabulary. Somehow, your approach sounds better.
Just a couple of questions, though:
1.) With this approach, would I get correct breadcrumb trails or would I still need to resort to Jeremy's hacks on greenashnet.au?
2.) Can I still use menu or menu_otf to build the navigation menus manually? I somehow prefer this.
Drupal experts, please let me know if my ideas are actually correct and whether this approach would have any disadvantages if I used multiple hierarchies on my site for the same term.
So, until Jeremy helps us all with his proposed category module, I think I can live with this reasonably simple workaround.
Comments
If you use menu_otf and put
If you use menu_otf and put all your terms in the standard drupal menu this will make the right breadcrumbs for you. Although the taxonomy_context module does something similar and makes the process more automated, as when nodes are added to terms, a menu item in taxonomy_context's navigation block is created under that term.
Thanks!
Thanks!
I never really liked taxonomy_context adding menu items under a term in the navigation block automatically when nodes are added to the term. When a large number of nodes are added, the block looks unwieldy and quite ugly.
I prefer the simple overview page for the term which lists the nodes, so menu_otf seems to be the right way to go.
Thats true about
Thats true about taxonomy_context maybe I should propose a new feature to added an option about how many nodes will show up under a term in the navigation block it generates