I've been able to use contemplate to modify the display of my custom CCK content type. However, I'm not sure the name of the Abstract and Attachment fields, so currently I'm not able to display them. What field name do I use to Abstract and Attachments, respectively? Thanks for any tips.
Comments
Comment #1
jrglasgow commentedThe attachments can be found at
$node->files (array), to use this you can:If you are in the teaser section of contemplate the attachments aren't loaded by default you will need to load the files with the
node_load()function shown below.I assume by abstract you mean the teaser, in the body section of contemplate the teaser is not loaded by default, you need to load the node:
If you want to display in the body the attachments, the teaser, then the node content:
When you load all the node information using
node_load()remember you can use print_r() to view the entire node object.Comment #2
js1 commentedThanks for the detailed reply.
Comment #3
jrglasgow commentedDid this do the trick for you?
Comment #4
js1 commentedYes it did. Thanks, again!
Comment #5
jrglasgow commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.