I'm struggling to resolve the issue with linking actual nodes as if they were taxonomy terms.

Is it possible to load a "taxonomy node" by overriding the views "taxonomy_term" with everything (comments & links) work accordingly? If so, can someone export me an example of how this would work on 1.0 beta 3?

Is there a swift way to forward all taxonomy terms to their node with path/pathauto?

I'd also be interested in seeing others solutions to this problem.

P.S. Sorry if this isn't the correct place to ask for help, IMO the module is obscure and I would likely never receive answers anywhere else.

Thanks!

Comments

arthursk’s picture

For anyone interested in my solution:

  1. I set up the Taxonomy Node using that patch found here #600878: Tagging nodes by "term" instead of "parent term" and tagging each content type with the taxonomy term.
  2. I enabled and overwrote the taxonomy_term, limiting it to 1 node, and only taking nodes with the "taxonomy node" node-type, enabled links, comments, etc.
  3. As a safe-guard of duplicate content, I set up the "taxonomy node" PAGE autopath to node/null/# and edited the "taxonomy node" page to redirect all page calls to taxonomy page : with the following code:
    <?php if ($page) {
      reset($node->taxonomy);
      $taxonomy_key = key($node->taxonomy);
      $path = drupal_get_path_alias('taxonomy/term/'.$node->taxonomy[$taxonomy_key]->tid);
      drupal_goto($path, NULL, NULL, 301);
    } else {
      print $content;
    } ?>
    
  4. If you wish to have comments on the taxonomy node page, using the view, you should use ajax comments to reduce the 301s, otherwise all replies will redirect to the node, and then back to the term (if you used the redirect snippet)
  5. Though I think this solution is somewhat effective, (xcept for the 301s) I'm still interested in seeing other solutions.

Yuri’s picture

http://drupal.org/project/taxonomy_redirect
that module is made for such issues