I have taxonomy_menu module enabled and a lot of categories. Some terms has no nodes assigned, some terms has a lot of nodes. In first case, I display information that there is no content on this term. In second case, I display list of nodes.
But what if there is just one node assigned to given term? I would like to render node page. How can I do it? I can detect it in
themename_preprocess_page
but what then? how render view page with term metatags and how render node with node metatags depend on term node count?
Related
On a taxonomy term page, the taxonomy term info is shown first, followed by related nodes. I want to add a wrapper div around the related nodes (ex. class="related-nodes").
taxonomy-terms.tpl.php controls the display of the taxonomy term's fields, but I'm not sure how the nodes show up. I was thinking about making a node template for the taxonomy and doing something like render($content['nodes']). However, I'm not sure what the $content key would be for the related nodes.
One approach is to enable the Taxonomy term view display (is disabled by default).
In the view config, you can add classes by clicking in Settings of Format option.
Hope it helps.
Regards.
I have a view that displays teasers of content type X (across all topics). Under each teaser, I would like to display links to instances of content type Y that share the topic (taxonomy) of that teaser. This seems like it should be relatively simple, but I'm having a hard time relating the filter criteria to the taxonomy of each line of the View's output rather than the taxonomy of the whole View page.
You can use the Views Field View module to do the trick: https://drupal.org/project/views_field_view
Although many post exits for this topic, no one seem to guide the user on how to go about this feature. I need to filter a view block such that it displays nodes with specific taxonomy terms. I have a taxonomy vocab called Sections containing terms like Analysis, Sports e.t.c and my Article content type has a filed tagging them with the terms. In other words, Article nodes are tagged with term(s) from the Sections vocab. I just need a way to display a block, with say nodes tagged with Sports
If you have followed any D6 tutorials, the major change is that taxonomy terms are now tagged as a field.
So create the View on Node table, and add fields as you want. Then, add a filter to the field's name that you used to tag terms in the Sections vocabulary.
You will be given a multi-select list to choose which terms should be filtered.
Showcase content/
I want to allow users to showcase their content within particular groups.i.o.w choose content they have created and make show particular CCK fields witin a OG.
Example:
a
user created node X, he then wants
to show node X to everyone else in
the group.
He clicks on a button in the group,
called showcse your node, which then
brings up all the Nodes that
theparticular user has created
The user then chooses the node, and
clicks submit.
I would then like to create a view or block that list all the nodes that has been showcased within a particular group. So I guess it needs to some how reference the group.
Can anyone direct me in the right direction of how this can possible be done?
Hmm, maybe have a tag in one of the vocabularies for nodes in the group called "showcased". Then simply create a view that displays all nodes with that tag?
Is there an easily managed way we can assign a specific taxonomy term to a specific instance of a view?
We're using the callouts module for Drupal, and it works great for nodes/pages we have in our site. But we have a handful of Views that are displaying as a page, but we cannot assign a specific taxonomy term to a specific instance of that view.
The view itself is pulling in lists of nodes based off of a taxonomy argument:
Example On the bottom left, we have some callouts, but they're shown randomly because we can’t assign a term to that page to show specific callouts.
There's 7-8 of these pages, and they all use the same View, but just passing different data through the argument. we've tried assigning the callouts we want to the taxonomy that is used to create the view, but that didn't work either.
Without changing the view output (for example, from a page to a block), how can this be accomplished?
Even if you could assign a taxonomy term to a view, I think it would not help in this case. Blocks are not aware of their context at the time they are rendered, so they have to look at the url to retrieve information about the node that's being displayed. The block checks if the page displays a node; if so the node data is loaded. The callouts module also works like that, as is explained on the module page. Since a view is not a node, the block will not render. To make this work, you would have to alter the callouts module I'm afraid.