php - a way to create a dynamic loop for a drupal cck field with multiple values -


i have list of links want print similar drupal: associating grouping more 1 cck field multigroup module no longer active (as of month after post) have been printing them so:

<?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; ?> 

and changing numbers

is way loop through such

for $node->field_committee_link[0][value] $node->field_committee_link[x][value] print $node->field_committee_link[x][value] x= i++ next

or need preprocess this?

help appreciated

try...

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

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -