Hi, I wanted to know what is the most possible way to organize content in drupal 7, using pathauto and taxonomy to get links like:

category/subcategory/node

where category and subcategory also can be treated like a node (if you go to example.com/category or example.com/category/subcategory it will display an article)

Thanks for help.

Comments

nevets’s picture

This part

where category and subcategory also can be treated like a node (if you go to example.com/category or example.com/category/subcategory it will display an article)

does not really make sense to me.

In Drupal normally example.com/category or example.com/category/subcategory would be pages that show a list of content (content in the particular category).

So, what are you trying to achieve here?

userhawk’s picture

I'll show you an example. Take a look at this website http://drupal.org/node/1853280

Look at the url's of main menu. This http://www.actfl.org/convention-expo isnt a page that show a list of content but it has a structure of links like this:

article1/article12/article123

nevets’s picture

Technically that page is view (not content).

And if I think in terms of section/sub-section/something (I think vocabulary when the term category is used) you can pretty much put anything you want at section, section/sub-section and section/sub-section/something using a combination of alias and real paths. It just takes some planning may require some manual aliases.

userhawk’s picture

Thanks for your response. I know I can put anything I want into manual alias but I was wondering is it possible to do it fully automatical.

nevets’s picture

Not that I can see.

When you use path auto you have a pattern.

So if you have a pattern "section/sub-section/title" where do section and sub-section come from?

How does some node end up with only "section" or "section/sub-section".

I do not regularly use the book module so I am unfamiliar with the tokens available but structurally it can be organized the way you want. It is possible if the pages where part of a book, there is a pattern that would work with path auto.

userhawk’s picture

Usually, when we build a page in drupal we have urls structure like category/article where category shows a list of content of that particular category. I'd like to have an article instead of list of content. Is it possible?