Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2009 at 16:02 UTC
Updated:
9 May 2009 at 08:40 UTC
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']) ?>