Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to set up a website containing 3 categories: movies, books and articles. And want every have menu item and subpage that features best content from the category. In every category i want to have articles, videos and galleries. I want every category page to look different, so with articles, videos and galleries from different categories.

In Drupal i can create "categories", "views" and "sections". I dont want to make a mistake on the design chosen. So my question is what methods of mentioned in last sentence should i use and in what order to organize the content i will have in a proper way?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

As always there are many different ways to do this in Drupal - and the right way depends on the context but usually anything to do with classification should be suggesting taxonomys.

In Drupal content types are best used when the actual content is different - from your description it sounds rather like the content will be similar - but I do find your question confusing.

So, if your content has the same fields needs to be classified into a category you'll use one content type with at least a new term reference field that you will create to hold the reference to the taxonomy vocabulary. This one content type will hold all of the content related to movies, books and articles.

If your content will contain different fields then you'll need a content type for each of movies, books and articles.

You will need to setup views for each of the taxonomy - as this is a good way to get a block that you can put onto the sidebar. Remember that block contents can be dynamic but blocks cannot (easily) take parameters so the dynamicness of the content needs to be driven by something else.

Sections aren't something that I've used - I've generally found it much better to understand and use the taxonomy - especially seeing as all too often it is necessary to have one content in two taxonomy vocabularies.

Setting up a view for each taxonomy vocabulary will give blocks. Views is great and needs to be understood.

You can setup a view for a taxonomy (block & page) - I generally use panels to build specific pages presentations using a view of a taxonomy vocabulary (e.g. this one) which links through to the taxonomy term which is a page using a path (/taxonomy/term/%) with a grid view.

share|improve this answer
    
Hello, Thanks for answer. So i can create a node with proper taxonomy key. How to configure the view to show when i'm in books subpage only articles about books? –  tomaszs Jun 5 '12 at 8:01
    
See changes (last para): You don't really configure a view to show things for taxonomy rather you setup the taxonomy to display as you want - all the basics are already in place and if you use the method it should be reasonably easy. –  Richard Harrison Jun 5 '12 at 8:24
    
I don't understand it... –  tomaszs Jun 5 '12 at 12:13
    
The taxonomy vocabulary are top level - I'm saying create a vocabulary that will hold each category as taxonomy terms - and then use panels together with views to show this. You build the views first and then create a panel. Panels are really neat at building pages that need to combine views for display. –  Richard Harrison Jun 8 '12 at 8:25

Taxonomy terms describe and categorize content while Content Types define specific attributes of that content.

Generally you will want to divide your content into Content Types and Taxonomy. A content type is a way to divide content by what fields that content contains. Movies, Books, Articles, Videos (in your case... maybe), all sound like potential Content Types in your system.

You'd then want to add Taxonomy Vocabularies to each content type (categories). Examples of these would be as simple as "Article Contains" with terms like "Video", "Photos", "External Content".

I suggest you do not use 'articles' in both places. Call the taxonomy term something more like 'text' or 'written'. As long as you divide content this way, your pages will be flexible. You can create pages that display content from a single content type and single category or a page with All content types and a single category. You maintain flexible data this way.

share|improve this answer
    
Thanks for answer. And how to configure a view "books" to show only nodes with books? –  tomaszs Jun 5 '12 at 8:02
    
Take a few hours to learn the Views module located at drupal.org/project/views . There are many resources out there to help you. It's basically a visual query builder that can then display your query results as a page, block, or other display types. –  TDBishop Jun 5 '12 at 21:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.