Path Aliases

mactoph - March 13, 2007 - 05:15
Project:Taxonomy dhtml
Version:5.x-2.2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

This is relating to the issue previously raised here:
http://drupal.org/node/39370

Which has been marked 'By design'. Discussion also here:
http://drupal.org/node/39337
http://drupal.org/node/39340

I am just what the reasoning is to providing a link to taxonomy/term/##/0 rather than the path or pathauto defined alias for terms?

#1

mishhh - March 17, 2007 - 20:06

I second that.

Taxonomy_dhtml should provide links to vocabulary terms in alignment with the definitions pathauto does.

#2

chazz - April 4, 2007 - 09:17

yes, links should be the same like pathauto links. Anybody have update ?

#3

chazz - April 4, 2007 - 10:15

Quick fix for flat vocabularies
TomArah - September 8, 2006 - 21:36

Changing

$url = "taxonomy/term/$term->tid/9";

to

$url = "taxonomy/term/$term->tid";

works for me as I'm using non-hierarchical vocabularies.

For me it's working 50/50 because old aliases are change correct but when i add a new node link for categories doesnt work. It looks funny like "mysite.com/%5Bcatpatch%5D"

#4

meba - April 4, 2007 - 20:57

I was thinking about this fix a long time ago. Can you provide a patch please? I will release it in next "feature" release.

#5

markDrupal - April 29, 2007 - 09:56

I didnt totally patch this, but here is a change i made to my site to make the 2 modules work together. This patch turns off linking to taxonomy terms all toghther, it either links to a node or it shows the taxonomy term with no link

The patch starts around line 194 (some lines before and after the patch are included)

else if ($term->link){
$link = $term->link;
$output .= "

  • $link
  • \n";
    } else {

    /Patch START (turn off linking to pages with no items
    // $link = l(t($term->name), "taxonomy/term/$term->tid/9", array("title" => t($term->description)));
    // $output .= "

  • $link
  • \n";
    $output .= "

  • $term->name (empty)
  • \n";
    //Patch END

    }
    }
    $output .= str_repeat("

    \n", 1+$term->depth);
    return $output;

    #6

    markDrupal - April 29, 2007 - 09:58

    I'll try posting that again

       else if ($term->link){
          $link = $term->link;
          $output .= "<li>$link</li>\n";
        } else {

    //Patch START turn off linking to pages with no items
       //      $link = l(t($term->name), "taxonomy/term/$term->tid/9", array("title" => t($term->description)));
       //      $output .= "<li>$link</li>\n";
      $output .= "<li>$term->name (empty)</li>\n";
    //Patch END

        }
      }
      $output .= str_repeat("</ul>\n", 1+$term->depth);
      return $output;

     
     

    Drupal is a registered trademark of Dries Buytaert.