1

I must build a block that retrieves children of a specific term id by selecting it through $node->title of a page. So, I get it with taxonomy_get_termBy_name. With this $term->tid I can get children of it by calling taxonomy_get_children(). Ok, it returns an array of children. For each child I must take name and path in order to build an . How can i retrieve these properties? I am unable to find a module that performs these operations, so I must build my own block.

2

You can use the l() function to do this.

Example:

$link = l('Link Title', 'node/' . $node_id);
$link = l('Link Title', 'taxonomy/term/' . $term_id);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.