By urrestieta on
hi
I need to be able to create nodes that have inserted other nodes. In a similar way to what Panels do but I would need to do this with code in the Body field of the node. Ideally I would need to be able to insert a piece of code in the node.
any ideas? thanks
enrike
Comments
found this old snipset for drupal 4.7
I found this snipset for drupal 4.7 in and old thread http://drupal.org/node/83349 but it does not work in drupal 5. Anyone knows what would be the equivalent nowadays?
I also found this in a similar thread
this one does exactly what i want but i would like to be able to pass aliases and not only node IDs
They both work by pasting the code into the BODY field and choosing PHP code as output format.
thanks for any tip
solved
insert this into the body field and select PHP code as output for the field.
$nodeid[1] is the number of the node.