Helpers Taxonomy Functions

Last modified: January 24, 2008 - 02:52

Functions

taxonomy_get_path($terms, $op = 'AND', $depth = 0, $feed = FALSE)

Build a path to a taxonomy listing page. Core patch pending at http://drupal.org/node/64664

  • Calling parameters
  • $terms
    a single numeric term id, or a single $term object or an array of numeric term ids or $term objects
    $op
    a string "AND" or "OR"
    $depth
    depth of the taxonomy tree that is to be returned. 0 equals the entire tree
    $feed
    TRUE for RSS feed, FALSE for page
  • Return
  • TRUE
    if the page is a node,
    FALSE
    if it is another page.

hello i need the "url-save"

momper - June 27, 2009 - 18:16

hello

i need the "url-save" alias for the tid of a term

if i try "taxonomy_get_path" i get

"Call to undefined function taxonomy_get_path() in xxx"

... and i don't want the complete taxonomy path - only the "url save" variable of the term name.

can somebody help?

I don't think there is a "url

NancyDru - June 27, 2009 - 22:01

I don't think there is a "url save" variable as you seem to envision it. However, there is a function drupal_get_path_alias that you can do on "taxonomy/term/xxx" to get the current alias.

If that function doesn't exist, then you probably don't have this module enabled.

thanks it works ...

momper - July 15, 2009 - 17:47

thanks it works ...

 
 

Drupal is a registered trademark of Dries Buytaert.