View all nodes of Content Type without using Views Module

simplyrahul - January 5, 2009 - 01:29
Project:Drupal
Version:6.8
Component:node system
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

It may be a stupid question.

I have created a new content type + taxanomy to tag the content. Now I want to create a menu link which shows all the content from this content type.

Content Name is: Book Review
Content Type is: review

I want the feature like when you visit sitename.com/review

It should display all the book review.

Is View the solution?

Or is there a simpler way to achieve that.

Regards,
Rahul

#1

VeryMisunderstood - January 5, 2009 - 01:41
Category:task» support request
Assigned to:simplyrahul» Anonymous
Status:active» fixed

This should have really been placed in the forums. Assiging yourself the issue doesn't help either.

That aside, if your content type has a term, core will automatically create a term list see: http://drupal.org/handbook/modules/taxonomy

I suggest reading the entire handbook page but ....

specifically:

Using categories in menus

The menus on your site can call for items that match specific taxonomy terms--that is, terms you've named your categories. Here's how.

When you create a new term, Drupal assigns it a number. And you can call up all the items categorized under that term by calling for its number.
To see your term's number, go to the categories page, choose list terms for the category to which your term belongs, and now hover over your term's name in the list. You'll see the number.
Now, on the menus page (administer >> site building >> menus) you can create a menu item for your term. Select add item, and when you fill in the path field you add your term like this:
taxonomy/term/1

If the term "sonatas" is term 1, this would call for all the nodes of that category.

If the term "Bach" is term 2, this could call for only those sonatas written by Bach:

taxonomy/term/1,2

Or if Brahms is term 3 and this will call for everything that has to do with either Bach or Brahms:

taxonomy/term/2+3

If you are using a hierarchical taxonomy, and want all notes tagged with child terms to show up also, you can create an URL link like taxonomy/term/2/2 where the second parameter is the depth that the tree will be recursed into, or taxonomy/term/2/all for all child terms.

If you need more help than this feel free to place a forum topic in the post installation forum. Where others can help. If taxonomy doesn't suffice then views is the answer. Though if you are trying to avoid views you may also want to look at some of the other contrib modules like indexpage.module and some of the other taxonomy modules in the downloads area.

Good luck.

#2

VeryMisunderstood - January 5, 2009 - 01:43
Title:View all nodes of Content Typy without using View Model» View all nodes of Content Type without using Views Module

fixing title to make it searchable

#3

simplyrahul - January 6, 2009 - 00:22

Thanks for a quick reply.

But the issue is that I want users to create these terms by using the tag option in taxanomy.

So basically there might by 100 of the terms generated.

The issue remains that I need to show all the terms which belong to a particular content type.

Is that possible?

#4

VeryMisunderstood - January 7, 2009 - 02:58

you may get more help with this in the forums. Off the top of my head, I don't know how you will do this with user created taxonomy terms where you don't know what the terms will be before hand.

#5

System Message - January 21, 2009 - 03:00
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.