I'm new to drupal.When i create content,there is a content type named 'Story'. Topic node under 'Story' would be URL like 'http://example.com/node/nid'. But no posts show when i visit URL 'http://example.com/story'. My plan is to make some other content type,like 'news','article'... I want a URL 'http://example.com/news' to list all topic under 'news'.
So anyone can offter some help. Thx!

Comments

nevets’s picture

You use views to list content type, while you can make one view per content type, you can also make a view that takes content type as an argument.

bingstats’s picture

Is there any method to do is without using views module or other module? I want to do this by SQL or theme functions.
But also thx!

tdimg’s picture

the alternative is to structure and organise your site by taxonomy rather than content type. Create a vocabulary, enable it for those content types you want, and then assign those terms to the vocabulary. Now whenever you create now content (a node), you select which type it is, and then by going to the taxonomy term page (you can use the path module to create nice looking URLs) you get a list of those.

nevets’s picture

Sure, one could write a module, essentially duplicated a limited set of views functionality. If you are going to use Drupal learning views is very useful, it can list content in a variety of ways and there are additional modules that add even more functionality to views.