I have a contemplate that currently shows a CCK field which is linked to a taxonomy term but would like to use it unlinked
the field is
$field_author
I see in the Body Variables List THE BIT I WANT but don't know enough to do it
$node->data
a:0:{}
$node->field_author (array)
$node->field_author[0] (array)
$node->field_author[0][7] (object)
$node->field_author[0][7]->tid
7
$node->field_author[0][7]->vid
1
$node->field_author[0][7]->name
THE BIT I WANT
$node->field_author[0][7]->description
$node->field_author[0]['view']
<a href="/taxonomy/term/7" rel="tag" title="">THE BIT I WANT</a> <br /><a href="/taxonomy/term/" rel="tag" title=""></a> <br />
I have tried selecting
$node->field_author[0][7]->name
which is then automatically entered into the template with the appropriate php codes and sort of works BUT because the code has [7] the tid, it only inserts that specific THE BIT I WANT (plain text without link) on the associated page
What do i need to do so that i can just get the field_author as text ?
If i just use
$field_author
I ger Array as output
Unfortunately i dont know enough coding to resolve this
What i am trying to get to is
$myfield_author = THE BIT I WANT
I Hope what i have said makes sense, and would appreciate if anyone can help, or at least point me in the right direction
Comments
Comment #1
jrglasgow commentedTry this:
This will give you a list of links to your taxonomy terms, is this what you are looking for?
Comment #2
Anonymous (not verified) commentedI will have to have a look . I think I 'bodged; it in the end, But i am sure this would be more efficient. Just need to remember where I did it :) As soon as i can find it i will let you know
Comment #3
jrglasgow commentedi am going to assume that there is no longer a problem.