Hi Nancy,

I Finally changed my site www.vindtocht.nl to Drupal 6, and of course converted my nodes to Web Links.
Thanks a lot for all effort you did in 2009 for me! A great yearending to you and Robert.

I would very much like my weblinks/[tid] pages to go to the taxonomy/term[tid] pages.
Because they have allready urlaliases so the pages look nicely, so taxonomy/term/176 for instance goes to wintersport and weblinks/176 not.
Thanks in advance!

Greetings, Martijn

Comments

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

On about line 177, you will find function weblinks_term_path($term). All you have to do is to either change the function name (like put an underscore in front) or comment out the return statement.

summit’s picture

Great! Thanks.
May be handy to make an setup option for it..but for now I will try it this way.
Greetings, Martijn

nancydru’s picture

Status: Postponed (maintainer needs more info) » Postponed

When RealLife™ stops kicking me so hard, I may do that.

summit’s picture

Status: Postponed » Active

HI Nancy,

I am trying to do this, but no result. I think it needs be done in:

function weblinks_view(&$node, $teaser = FALSE, $page = FALSE) {
  if ($page) {
    // Breadcrumb navigation
    $breadcrumb = array();
    $breadcrumb[] = l(t('Home'), '<front>');

    // See the comments in hook_init.
    $breadcrumb[] = l(_weblinks_get_menu_title(), 'weblinks');

    if (isset($node->taxonomy)) {
      $tids = array_keys($node->taxonomy);
      $parent_links = array();
      foreach ($tids as $tid) {
        if ($parents = taxonomy_get_parents_all($tid)) {
          $parents = array_reverse($parents);
          foreach ($parents as $p) {
            $parent_links[] = l($p->name, 'taxonomy/term/'. $p->tid);
          }
        }
      }
      $breadcrumb[] = implode(' | ', $parent_links);
    }
    drupal_set_breadcrumb($breadcrumb);
  }
  $node->is_teaser = $teaser;
  $node->content['body']['#value'] = theme('weblinks_link', $node, $teaser);
  return $node;
}

There I have changed weblinks/ to taxonomy/term/ that is working!

I also have another problem with breadcrumb. See: http://drupal.org/node/735874

greetings,
Martijn

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

My concern with that is if someone share a vocabulary with another content type. Then the content types would get intermingled.

summit’s picture

Hi Nancy,

EDIT: Still +1 to have this as an option, because now I have to change this everytime I update weblinks module.
Also I see the weblinks_views module not working correctly. Every parentterm is also print so I get more than one the same parentterm in the breadcrumb.

greetings, Martijn

nancydru’s picture

Status: Postponed (maintainer needs more info) » Active