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

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

can you paste in the section of your variables list where your field_ingredients is mentioned?

dorien’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for your reply, I got it,

it was
<?php print check_plain($node->field_ingredients[1]['value']['field_quantity'][0]['value']) ?>

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.