2011-01-26 3 views
0

나는 Drupal: Associating grouping more than one CCK field과 비슷하게 인쇄 할 링크 목록을 가지고 있지만 다중 그룹 모듈은 더 이상 활성화되지 않습니다 (해당 게시물 다음 달 이후) 난과 같이 그들을 인쇄되었다 : $에 $ 용 등여러 값을 사용하여 drupal cck 필드에 대한 동적 루프를 만드는 방법

노드 -> field_committee_link [0] 값]을 반복하는 방법이

<?php if($node->field_committee_link[0][value]): ?><h4>1) <a href="<?php print $node->field_committee_link[0][value] ?>"><?php print $node->field_committee_link[0][value] ?></a></h4><?php endif; ?> 
<?php if($node->field_link_descriptor[0][value]): ?><?php print '&nbsp;&nbsp;&nbsp;&nbsp;'. $node->field_link_descriptor[0][value] ?><?php endif; ?> 

변화하는 수치

그들의이며 node-> field_committee_link [x] [값] 인쇄 $ node-> field_committee_link [x] [값] x = i ++ 다음

아니면 전처리해야합니까?

도움을 크게 ...

답변

2

시도를 감사

foreach ($node->field_committee_link as $link) { 
    print $link[value]; 
}