By garg on
Hello,
I made a new content type but now I want to create a template for it to change the way it looks. I tried to use contemplate to do that. I also needed the medium vote and image_upload modules with that content type. Unfortunately when I try to use contemplate it removes the mediumvote and image_attach results.
Can someone please tell me what code I need to put inside the contemplate templates to get the mediumvote and image_attach results back into the content type?
Thank you very much.
Comments
image_attach
using CCK 4.7.0 with contemplate 1.5
image_attach works fine for me and DO appears in contemplate node vars, as $field_MYIMAGEATTACHFIELDNAME array. It will not appear as an image in the $var list.
Anyway, every field is treated by contemplate in the same way:
- simply try and add this code in the contemplate mask (either teaser and body)
where MYFIELDNAME is the name of your field and I think you'll make it. Also, check proper permissions for file uploading and upgrade your modules to the latest production version (hopefully 4.7.0). If using CCK, remember to refresh the cache of your content types if upgrading.