How to output the fields i defined in terms?
webworks - August 8, 2008 - 06:19
| Project: | Taxonomy Enhancer |
| Version: | 5.x-2.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
can you give me some help about this ....

#1
i need to output them to my frontend pages , such as in : /?q=taxonomy/term/1
#2
The way I find easiest to do this is via the Views module.
Say, for example, you define a new field called "header" for a vocab. In the View you have for taxonomy/term, go to the page view and expand the Header section.
In there you need to set the input filter to PHP and enter something like the following into the box (including the <php and ?>)...
<?php$t = taxonomy_get_term(arg(2));
taxonomy_enhancer_extend_term($t);
echo $t->my_header_field_id;
?>
Does this help?
#3
I need some more help with this, i am not adding it in a view, but rather page-catalog.tpl.php where catalog is my vocab (ubercart)
I created a field called catalogtitle to enbed a field to be used for the Page Title.
In my tpl file i put the following. This is not outputting anything. Am I missing or not seeing something?
<title><?php
$t = taxonomy_get_term(arg(2));
taxonomy_enhancer_extend_term($t);
echo $t->catalogtitle;
?>
</title>
Thanks