1
난 그냥 노드 생성에 대해 여러 조건을 활성화하고 난 그냥 싶어 내가 다음 코드Drupal의 트리 구조를 사용하여 노드 조건을 블록으로 표시하는 방법은 무엇입니까?
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if (module_exists('taxonomy')) {
$terms = taxonomy_link('taxonomy terms', $node);
print theme('links', $terms, array('class' => 'node-terms'));
} else {
print 'No associated categories.';
}
}
으로 시도 블록에 sturctured 트리로 그 대해 여러 개의 용어를 를 표시하지만 운은 단지 모든 용어를 표시하지 않습니다,하지만 난 아래에 표시해야합니다.
- parent term1
- sub term 1.1
- parent term 2
- sub term 2.1
-- sub sub term 2.1.3
선택한 사용자에 따라 적절하게 트리로 표시됩니다. 누구든지 도와주세요
,