1000+ pages, 1000+ views blocks, any shortcuts?
I will have over a thousand pages on my website, each one dedicated to a specific topic.
example.com/category-1/topic-1
example.com/category-1/topic-2
example.com/category-1/topic-3
example.com/category-2/topic-4
example.com/category-2/topic-5
example.com/category-2/topic-6
etc.
On each topic's page, I would like to add a views block which shows the latest content added (articles, etc) that is related to said topic.
So, for example, lets say that topic-1 is "blue" and it has a page that is dedicated to it.
On that page, I want a views block that will display all of the latest articles that are about "blue".
Now I want to do the same for the 1000+ other topics.
Will I actually have to create 1000+ unique views blocks in order to achieve this, or is there a simpler way?
I can't image how my block management page will look like if I have to go with the former.

It's your lucky day
My company wrote a module to fill this gap before. It's called Related Views and it is pretty simple to use. Create a block view and add the new filter "Taxonomy: Term from current node" The module take care of getting the taxonomy term from the node and inserting it into the View as an argument. With this module, you can use one block for all of your pages. The code might be a little rough. We got it to the point where it worked for our customer, but didn't have the funding to make it feature rich.
Bonus! No
Bonus! No arg-handling!
.dan.
That's what views arguments
That's what views arguments are for. Although I don't understand the docs, somebody must have a recipe for this.
http://drupal.org/project/similarterms is a module that just does it without views, and I prefer to just make a custom code block
You may also want to look at http://drupal.org/project/taxonomy_context as a whole solution to yahoo-style topic tree browsing as (i think) you are describing..
in all cases, making a hundred blocks is definitely the wrong thing ;-)
.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |