Hello,
I have a flexifield. The code suggested by contemplate is:
<?php print check_plain($node->field_ingredients[0]['value']['field_quantity'][0]['value']) ?>
However, this is field / node that consist of multiple entries.
I tried
<?php print check_plain($node->field_ingredients[1]['value']['field_quantity'][1]['value']) ?>
but this gave me an error.
I guess I should use a foreach statement, but I am unsure how to. Any help or directions are much appreciated.
Comments
Comment #1
jrglasgow commentedcan you paste in the section of your variables list where your field_ingredients is mentioned?
Comment #2
dorien commentedThanks for your reply, I got it,
it was
<?php print check_plain($node->field_ingredients[1]['value']['field_quantity'][0]['value']) ?>