I have a content type with a cck node reference field (allowed multiple values)
By default it output individual div for each value, now I want to use this module to output multiple values in unordered list.
By doing some debugging, the value stored is a nid, what is the snippet of php to get a node link with it's node title from a nid ?
Also, if more information is required from the referenced node, you would simply use node_load($nid) to load the node object (where $nid is the applicable node id).
Make sure to check the field "Handle multiple values" and to check that there actually are anything returned from the code; I had to do a numeric check on the nid to decide if I would return anything. There probably is a better way.
Comments
Comment #1
adrianmak commentedJust tried it support cck node reference.
Then,
I have a content type with a cck node reference field (allowed multiple values)
By default it output individual div for each value, now I want to use this module to output multiple values in unordered list.
By doing some debugging, the value stored is a nid, what is the snippet of php to get a node link with it's node title from a nid ?
Comment #2
aaron stanush commentedadrianmak, try the following:
Comment #3
decipheredAnswer should be satisfactory.
Also, if more information is required from the referenced node, you would simply use
node_load($nid)to load the node object (where $nid is the applicable node id).Comment #5
pkej commentedMake sure to check the field "Handle multiple values" and to check that there actually are anything returned from the code; I had to do a numeric check on the nid to decide if I would return anything. There probably is a better way.