/ Published in: PHP
Use this to pull a list of items based on the nid of the 'parent' node.... so you can show fields added to that node, on the child. Handy.
Make nid argument..... use custom php arg code below to feed the argument the nid of the parent.
Remember to change the $ to the field name you are targeting..... IMPORTANT
Make nid argument..... use custom php arg code below to feed the argument the nid of the parent.
Remember to change the $ to the field name you are targeting..... IMPORTANT
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$node = node_load(arg(1)); return $node->field_proj_parent_ref[0][nid]; } else { return FALSE; }