Taxonomy hierarchical tags module
There is the idea of developing a module for implementing a hierarchical taxonomy and combining functions of custom tags.
In this case, it is assumed that the module should not break the normal operation of the mechanism of taxonomy and tagging.
Context based on terms added by Rules
I am trying to add sidebar blocks according to the date of the event. It should show different ones, when event is in the future and when is in the past.
For adding sidebar blocks I am using Context module. It doesn't support values of CCK date fields as conditions, so I am trying to use Rules to set terms ("past" and "future"), which can be used to define condition in Context.
The problem is, when I try to execute the rule on "Content is going to be viewed" the Context is activated BEFORE the content is loaded (and term applied), so I have to reload page to see the proper result. This of course isn't acceptable. I can't use Rules Scheduler, because I need to use parameters.
Read moreKategorier och taxonomi vid sajtrenovering
Goder afton
Inför ett kommande projekt ska jag göra om humorhemsidan Skrattnet.se. Jag har tänkt att jag för varje text, bild, fil eller film jag laddar upp ska jag dela in varje i en eller flera kategorier och sedan även tagga dem. Kategorierna för att ge folk möjlighet att få fram just den kategorin de är intresserade av, och taggarna för att om de söker sig in på sidan ska de kunna hitta liknande roligheter genom taggarna.
Read moreHow can I create a view that relates two node types with shared taxonomy terms, and then display relevant content to a particular user?
I have two node types (node 1 and node 2) that share common taxonomy terms from the same vocabulary. These nodes also share one field in common. A set of users are related to node 2 content by node references.
I want to have a logged in user see the node 1 content that is relevant to them, given their relationship with multiple node 2s and the relevant taxonomy terms shared between node 1 and node 2.
Example:
taxonomy terms = region 1, region 2, region 3, etc.
shared field with limited values = value 4, value 5, value 6
Create a view to display content of a taxonomy term, which also displays the taxonomy term as the page title in the correct language
By default, taxonomy pages display content in chronological order, and this is not customizable unless you update the core module.
To get around this, create a view with taxonomy term as the argument, simple (if you're new to views and arguments, check-out this tutorial video: http://gotdrupal.com/videos/drupal-views-arguments).
In the argument settings, if you enter %1 as the title override, the page title will become the Taxonomy term of the taxonomy id argument, BUT this method fails to show the translated string if you're not viewing the page in the default language.
Read moreProgramatically adding taxonomy term to node
I'm trying to programatically create, and add a term to a node. Here's what I've got so far:
function mymodule_nodeapi(&$node, $op, $teaser, $page) {
if($node->type == 'robot_club') {
switch ($op) {
case 'insert':
// create new taxonomy term
$termname = $node->title;
$term = array(
'vid' => 6, // Voacabulary ID - robot_clubs
'name' => $termname // Term Name
);
if (taxonomy_save_term($term)) {
$newterm = taxonomy_get_term_by_name($termname);
$node->taxonomy = $newterm;
} else {
Read more Associating taxonomy with a user
After some great help by @afreeman on Friday, I've got a solid plan for implementing a lightweight user grouping function on my website. In a nutshell, I have "Club" nodes, that users can associate with. A taxonomy links the two. First problem: it doesn't seem possible to link a taxonomy term with a user. So, I'm using Content Profile, which turns user profiles into Nodes. Using this I can associate the user's profile node with a taxonomy term.
Read moreAssigning a taxonomy term when published
I want to make sure that a certain content type is only visible to users with a specific role.
I've already got a taxonomy vocab called 'role requirements' and Taxonomy Access Permissions set up to do the right thing for the right roles, so this boils down to making sure that any new content of a particular type is assigned a particular taxonomy term.
I wrote a couple of rules to do this and it all works nicely except that I get an error if the user has been diligent and already assigned that term to the node. The system still works, but I don't really want SQL errors appearing...
Read moreRelated nodes by taxonomy term and managing the results
Hi there
I'm looking for some advice on taxonomies and tagging.
I've got a main site taxonomy that users can add to and can select multiple terms.
This works well up to a point - I've been tagging stuff and have created blocks such as 'related events' which appear on pages that share the same taxonomy term.
Obviously there is a tipping point where you can end up with too many 'related items'. Events or news for example can be limited to those that are current.
Read moreModify article
I have made some taxonomy for my openpublish site. But when i load it with article i can't see nothing.
For example: Vocabulary : world cup 2010
Taxonomy term: - Groups Analysis -- refer to : http://www.goaledor.com/category/world-cup-2010/groups-analysis
- World Cup 2010 News --> refer to: http://www.goaledor.com/category/world-cup-2010/world-cup-2010-news
But when i open http://www.goaledor.com/articles/World%20Cup%202010 i got nothing.
Please tell me how to fill it.
Thank you..
Read more
