Community Documentation

Helpers Taxonomy Functions

Last updated January 24, 2008. Created by NancyDru on January 24, 2008.
Log in to edit this page.

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.

Comments

hello i need the "url-save"

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

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 ...

thanks it works ...

About this page

Drupal version
Drupal 5.x

Develop for Drupal

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here