Hi,
slowly I explore the great miracles of drupal but for a while I am struggling with a problem and no search query helped me so far. So I guess I maybe approach my issue wrongly. Although some points are already partly solved. I am thankful for any further advice.
Here is what I have:
I have content type called link with different CCK fields, which are tagged. Now I have hundred of links with a title, description, tags and url each. There all nicely listed in a tag cloud thanks to tagadelic.
Here is what I want:
I want a specific listing page for certain links dependent on the taxonomy, which is dynamically created. Furthermore I need this list separated (themed) in three different section filtered by three terms.
So for example when I click on resources/garden that it gives me a three paragraph listing filtered (again!) through three different further tags. This would give me the following:
A page with Resources for garden
Flowers:
- Link1 + title + description
- Link2 + title + description
Trees:
- Link1 + title + description
- Link2 + title + description
Bushes:
- Link1 + title + description
- Link2 + title + description
Here is what I did:
I build three different views (for each section one: flowers, trees, bushes) . First of all I struggled to filter for the tag passed in the url and for the section. But this works now. One (garden) goes through the argument handler (taxonomy term id) thanks to this code: http://groups.drupal.org/node/8500 and the other (e.g. flowers) I just use the view filter (taxonomy for term).
But of course I still do not have the overview page I want.
So next I tried to embed two views in the third views header and footer (http://drupal.org/node/42599), which works partly but does not seem a nice method. More importantly it does show me now the three sections, which I can theme through the theme wizards. But of course it can only filter the one view rightly and the other two embedded stay always with the same tag filter.
So I am quite close what I want and still not there. I am sure there is another proper method and would be grateful for any hint.
Comments
Views!
insert a view (or many views) into a node.
An alternative way to accomplish this: Example: How to provide a view which contains taxonomy headers ( http://drupal.org/node/42603 )
Thanks very much!
That indeed worked.
Although I put the code into the header and footer of one view and it works too, but I guess it is not a very nice method. At least I could now easily put static headers in between and the all the other styles I could edit through the theme wizard views-list-garden.tpl.php.
I did this only because I need a dynamic url such as /garden/$arg.
So here comes a stupid questions: How can I do this with nodes? When for example I use a node-garden.tpl.php template file how do I assign the above dynamic url to the node? Sorry i just not get that link and thanks again for helping me here.
Subscribing, greetings,
Subscribing, greetings, Martijn