Hi there,
What I need to know is if there is any way to keep several menus, and in each menu be able to list all nodes relating to it. Like it happens in drupal main page when content is inserted.
Thank you,
Pedro A.
This can be done using categories.
- Enable the taxonomy module. - In the categories admin menu, create vocabularies which apply to some content types (e.g. "Sections", "Topics" etc). - In these vocabularies, add terms (categories) such as "Books", "Movies" etc. - Then, whenever you create or edit a node you can tag it with terms (categories). - To get a blog-like listing of all the nodes which are tagged with a certain term you use the url "/taxonomy/term/nn" where nn is the term's ID.
You can use that url in your menus. If you enable the path module you can also alias that url to something meaningful (e.g. "/books/fiction")
There are more tricks for listing node teaser lists, for example "/taxonomy/term/nn+mm" lists nodes from two different categories. For even more advanced stuf you can install and use the views module.
On 5/2/07, Pedro Andrade pedro.andrade@stepahead.pt wrote:
Hi there,
What I need to know is if there is any way to keep several menus, and in each menu be able to list all nodes relating to it. Like it happens in drupal main page when content is inserted.
Thank you,
Pedro A.
-- [ Drupal support list | http://lists.drupal.org/ ]
How does one list nodes which have two or more terms associated with that node? In other words, if a node is tagged as having term 9 and term 33, is it possible to filter upon all nodes which have terms 9 and 33 and then feed them?
Although /taxonomy/term/nn+mm is useful it is only a concatenation method.
Cog Rusty wrote:
This can be done using categories.
- Enable the taxonomy module.
- In the categories admin menu, create vocabularies which apply to
some content types (e.g. "Sections", "Topics" etc).
- In these vocabularies, add terms (categories) such as "Books", "Movies" etc.
- Then, whenever you create or edit a node you can tag it with terms
(categories).
- To get a blog-like listing of all the nodes which are tagged with a
certain term you use the url "/taxonomy/term/nn" where nn is the term's ID.
You can use that url in your menus. If you enable the path module you can also alias that url to something meaningful (e.g. "/books/fiction")
There are more tricks for listing node teaser lists, for example "/taxonomy/term/nn+mm" lists nodes from two different categories. For even more advanced stuf you can install and use the views module.
On 5/2/07, Pedro Andrade pedro.andrade@stepahead.pt wrote:
Hi there,
What I need to know is if there is any way to keep several menus, and in each menu be able to list all nodes relating to it. Like it happens in drupal main page when content is inserted.
Thank you,
Pedro A.
-- [ Drupal support list | http://lists.drupal.org/ ]
On 03/05/07, Haisam K. Ido haisam@ido.org wrote:
How does one list nodes which have two or more terms associated with that node? In other words, if a node is tagged as having term 9 and term 33, is it possible to filter upon all nodes which have terms 9 and 33 and then feed them?
Although /taxonomy/term/nn+mm is useful it is only a concatenation method.
/taxonomy/term/nn,mm
That's really impressive! This clearly can't be just SQL. PHP must be involved.
Anton wrote:
On 03/05/07, Haisam K. Ido haisam@ido.org wrote:
How does one list nodes which have two or more terms associated with that node? In other words, if a node is tagged as having term 9 and term 33, is it possible to filter upon all nodes which have terms 9 and 33 and then feed them?
Although /taxonomy/term/nn+mm is useful it is only a concatenation method.
/taxonomy/term/nn,mm
On 03/05/07, Haisam K. Ido haisam@ido.org wrote:
That's really impressive! This clearly can't be just SQL. PHP must be involved.
You can also specify the depth when you have hierarchical vocabs:
/taxonomy/term/termids/depth
eg
/taxonomy/term/termids/0 (same as /taxonomy/term/termids ) /taxonomy/term/termids/2 (include terms up to two levels below) /taxonomy/term/termids/all (include all subterms)