Добрый день, необходимо вывести в определенное место значения поля, "Тип поля" в материале "Ссылка на термин", использовал следующий код:
<?php print render($node->field_catalog_list['und'][0]['taxonomy_term']['name']); ?>
Не выводит значение.
Это структура данного поля:
<?php
[field_catalog_list] => Array
(
[und] => Array
(
[0] => Array
(
[tid] => 7054
[taxonomy_term] => stdClass Object
(
[tid] => 7054
[vid] => 2
[name] => Great Wall
[description] =>
[format] => moderfil
[weight] => 0
[vocabulary_machine_name] => marka_avto
[field_ikon_tax] => Array
(
)
[
metatags] => Array
(
[und] => Array
(
[geshifilter-robots] => Array ( [value] => Array ( [index] => index [follow] => follow [noindex] => 0 [nofollow] => 0 [noarchive] => 0 [nosnippet] => 0 [noodp] => 0 [noydir] => 0 [noimageindex] => 0 [notranslate] => 0 ) ) ) ) [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [path] => Array ( [pathauto] => 1 ) ) [name] => ) ) )?>
[/geshifilter-robots]
Комментарии
<?php print render($node->field_catalog_list['und'][0]['taxonomy_term']->name); ?>
Спасибо большое, самое то