Hello drupallers

I am a designer in the process of learning Drupal. I find the process not easy since most, if not all the documentation seems to be written from the perspective of programmers or tech people: I seem to be missing knowledge that is assumed and things are explained in ways that do not quite relate to the designer end of the universe. I find lot of drupal stuff not necessarily very difficult, it is just explained from a perspective that is not easy to relate to from a designer background. In learning Drupal, many a time I have found myself exclaiming: Ooh, is that what they mean! Why don’t they just say so!! Of course “they” did, but for me in order to be intelligible I somehow need to find the translation of what is being said.

Anyway my drupal skills so far are: I can manage basic installation and configuration, can set up a simple site and have done some basic theme tweaking. I am now working on a bit more complicated site and I need some help with the navigation I’ve envisioned.

The problem:
This is the situation: My site’s main nav has 5 primary links, which are like the 5 main categories of information. An example to clarify: a department store with say a food section, shoes section, men’s clothing, women’s clothing and toys. On the site I want specific blocks appear per section. For instance if you click on the main category toys, speciefic block regions with content about toys appear in the left sidebar, regions that do not appear on the other sections, and visa versa.

The solution (?)
After doing research how to achieve the above in drupal, I am thinking of doing it like this:
- Create a content type for every main category, i.e. content type shoes, content type, toys etc.
- Create for every content type its own template from node.tpl.php, i.e. shoes.tpl.php, toys.tpl.php, etc
- Define block regions for every category in .info file and somehow connect the regions to the specific template files of each content type.

Questions:
- Will the above solution work? And is it a good way to go about it?
- If so, I have at the moment yet no idea how to go about connecting specific regions to specific content type. Tips and guidance on this is most welcome, (Handbook contains only some info about how to do it in drupal 5, I could not find anything on how to do it in drupal 6)
- If not, does anyone have a better/ simpler idea perhaps?

I hope my problem is clear and you do not need a translation for it :-)

Thanks very much for your input!
Artaud

Comments

WorldFallz’s picture

It will work, but depending on how similar the different content types are, if might be a lot of redundant work.

I would probably do this with with taxonomy. In your example, I would create a vocabulary for "department" with terms for food, shoes, men's clothing, women's clothing, etc. This way you could have different content type for shoes, food, and clothing (which probably will have different fields) but the men's and women's clothing could be the same content type (similar fields) but different departments. Then you can use things like taxonomy_menu, pathauto, and views to present lists of nodes just about any way you want (including controlling block placement). You may also want to look at the http://drupal.org/project/panels and http://drupal.org/project/contemplate modules for more precise control of page design.

however, there's usually no right or wrong answer with drupal-- use whatever method that will get the job done and that you're comfortable with.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

Artaud’s picture

Dear WorldFallz,
Thanks for putting me on the trail of taxonomies, as a way of creating categories, it sounds less cumbersome then my plan, especially when you want to add more categories later on. So far I have not yet worked with drupal taxonomy features, but I am certainly going to look into that now, and the panels and contemplate modules too.
Again, thanks so much for the input, just the pointer in the right direction I was looking for!

Artaud

WorldFallz’s picture

you're very welcome-- and good luck with your site.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

Artaud’s picture

For anyone else who is looking for a way to (hierarchally) categorise content in drupal: I have found the writings of Jaza very helpful:
http://drupal.org/node/19627#comment-33352
http://www.greenash.net.au/posts/thoughts/basic-breadcrumbs-and-taxonomy

I also discovered the category module, also by Jaza
http://drupal.org/project/category

This module combines the book style and taxonomy features of drupal and looks like the very thing I need for my site at hand!

Artaud

mroswell’s picture

1. Consider the context module.
2. Or more commonly, go manually into each block configuration, and specify the path for which that block is allowed to appear (just in your category)