Dear all,
I´m trying to use Drupal now for a couple of days, but at the moment I´m a bit confused. I could understand the principles of taxonomy and it works quite good. I use the taxonomy menu and made it nice with nice-menus.... That´s pretty cool.
Now I got a question: I have got the following taxonomy structure....
Vocabulary1
- Term 1
-- "under"term 1
-- "under"term 2
- Term 2
-- "under"term 1
-- "under"term 2
Vocabulary2
- Term1
-- "under"term 1
-- "under"term 2
- Term 2
-- "under"term 1
-- "under"term 2
...
I read a lot in all the forums and found some hints, but I´m not managing to clearly understand what I have to do.
If I click Vocabulary 1 in the navigation menu I would like to display a list of all Terms with title and link, but just the ones in the first level in the content area.
If I click Term 1 I would like to see a list of "under"term 1 and 2.
In "under"term 1 and 2 are a couple of articles which I would like to see when I click on "under"term.
I guess I have to make different node.tpl´s for that?
Or do I have to use the VIEWS Module?
I found this node http://drupal.org/node/133223 but I couldn´t manage to get it to work.
Anyone out there to help me?
THANKS a lot.
Comments
For reasons I cannot fathom,
For reasons I cannot fathom, an important feature of taxonomy has gone undocumented.
I just added it to the bottom of the handbook.
What you want is
taxonomy/term/{n}/all.Where 'all' (or a number) is the depth you want the child items to be recursed to.
Unfortunately it still doesn't group or show the subcategories on that page, but at least it'll show the contents of the tree like i think you want.
Apparently taxonomy_context.module will add that extra feature.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Thanks for your help,
Thanks for your help, Dan...
We have a saying "sometimes you can´t see the wood because of all the trees..." It means that I´m so confused that I can´t think logically any more..
I really like the community, but at this stage, I´m feeling quite bad because I only ask stupid questions and can´t help other people. But I hope that some time I can give something back...
I read your comment about the taxonomy_menu, but why do they say its "Drupal code standards compliant"?
What would you suggest if not using the taxonomy menu?
Is it normal practice to create a standard menu which links to the categories in the taxonomy?
How do I create a link which shows me all the terms in the first level of a specific vocabulary?
Vocabulary1
- Term 1
-- "under"term 1
-- "under"term 2
- Term 2
-- "under"term 1
-- "under"term 2
If I click on the link to the Vocabulary 1 page I would like to list
-Term 1
- Term 2
in the content area.
Oh oh.. . I think I need a break soon...
Thank you.
> I read your comment about
> I read your comment about the taxonomy_menu, but why do they say its "Drupal code standards compliant"?
Big fat deal. It means someone was happy when they finally got the code to pass the standards checker. It's a changelog sorta note.
> What would you suggest if not using the taxonomy menu?
Do it by hand. Sorry, I've not found the magic recipe yet, and if you've got less than 50 items in your taxonomy ... just type it. Anything else is inefficient to set up and tweak and test. That I've found. There may be better answers out there.
> Is it normal practice to create a standard menu which links to the categories in the taxonomy?
I Guess.
> How do I create a link which shows me all the terms in the first level of a specific vocabulary?
Vocabulary linking isn't a standard feature.
Either use taxonomy_context which does that, or shift everything in your heirarchy down one and link to that.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Somehow I managed to
Somehow I managed to configure all my things and slowly I start to see the power of Drupal, but only slowly. But it´s good!
I got another question for the menu stuff.
Let´s explain quickly:
I have several terms (as mentioned above) and if somebody creates an article (story) he has to categorize the article. There are several
articles for one term.
I have the same description of that term in my menu and if somebody clicks that link he sees all the articles related to that term.
I put the following code in my node.tpl
$path = 'node/' . $node->nid; print drupal_get_path_alias($path); ">
to get an anchor id for all the headings in the page.
Now: I would like to use a hierarchical menu structure for that...
Term 1
-- article 1
-- article 2
-- article 3
-- article 4
Term 2
--article 1
-- article 2
....
To achieve this is not a problem, but I do not want the articles to be linked as a seperate page, I want them to be anchor links to the overview page.
If I edit the menu manually it´s not a problem, because I can edit the "path"-field and tell the menu item to go to term1#article1.
But: if an editor creates a story related to a category he can set the menu settings it creates a new menu item, but of course a link to the page with only the new article.
Is there a way to create the anchor link automatically?
I thought maybe with the autopath module. I must check!
Another question: as mentioned above I want to show all the articles related to the active menu item. That´s easy.. but if an editor creates a new article which should appear f.e. between article 1 and article 2 on that page , he has to set all the weights again.
I searched for ordering modules, but found nothing ....
Hhhmm..all those questions..
Thanks for your help. Really appreciate it.
Interesting. Two quite
Interesting. Two quite tricky ones.
I know what you mean with all in one page + anchors. Makes sense. I did one for an FAQ module long ago.
There is no support for anything like that through the existing menu system AFAIK.
As for weighting, yup, it's tricky to manage manually.
At this point your requirements are such that you should move on from the built-in taxonomy and start working with views. That's a whole big new world, but it's based on some of the principles of taxonomy.
Ordering and filtering are what views does. taxonomy is based around tagging, which by default treats items as things in a bag. When that's not enough ... that's why views was built.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Html in Menu title
Thanks for your support, Okay, I will check views module...
One more thing: do you know if I can achieve to enter html in a menu title ? I read all the stuff about bb2html, but it´s just for node titles..and not for menu titles..
It´s quite silly, but I need a menu item to be a little bit indented, with not beeing in the second level.... so I thougt entering some would solve the problem... but I can´t because drupal will change the & to
&for sure, which is obviously great, but not in this specific context...Thanks a lot....