By mitchepa on
Hi all, sorry to bother again, just a quick question
I have started to use CCK and the Image Field module as I want to have an image on each page that is slightly different. Everything has worked great so far and i have been able to insert the image fine etc. The image when placed in is dumped at the bottom of the main content on the page where I want it to appear at the top. So by using contemplate I have got it to appear at the top but it still shows at the bottom also. There must be a way to stop this duplication and prevent the php spitting out the image twice in two different locations
Thanks all for the help
Paul
Comments
I'm having the same problem
I'm having the same problem, but with a different CCK field -- I added one to the story content type called "pullquote". As with your image field, I can place it where I want it with Contemplate, but it still shows up at the bottom as well.
I read in a another thread that you're supposed to set fields that you place with Contemplate to hidden in the content type settings, so that they don't also show up on their own, but when I do that it hides both of them -- the field where I placed it with Contemplate and the second instance of it at the bottom of the story.
Did you ever find a solution for this? Or has anyone? I submitted this as an issue in the Contemplate issue queue but haven't gotten any response yet.
placing image in teaser and body
the new version of image module has a weight value in relation to the body ... if set to -1 ... image place itself to the top right of the teaser. for the body however, i have to define the class image-attach-body and define float: right;
Doesn't really help
Changing the weight is not going to keep it from showing up twice, which is the problem I'm having here. And it's actually not just with images -- all fields added with CCK and Contemplate show up twice, once where you put them and once at the bottom.
I've temporarily fixed it by setting .field-item and .field-label to display: none in my theme's stylesheet, and making sure that when I place the fields in Contemplate I don't use those classes, but it's not a great solution because it really shouldn't be doing that in the first place. And I'm a little worried about search engines penalizing me for hidden text...
using also contemplate
i just started using contemplate but i have no problem with duplicate images... i think i realised then that if of you just get $node->body ... it's pre-setup to contain an image-attach (pretty much the same with just pulling value of $node->teaser) however if you call specific array element like $node->content['body']['#value'] ... it'll just contain the field of the body value
[ btw my response initially was actually for the original question that sometimes you don't need contemplate to position image attachments by just playing with the value order of displaying image in teaser or in full-text you an probably achieve your goal... it's just my lesson learned from trying hard so much and playing around... i just found out that there's an easier way ;) ]
peace!
---
http://www.apcwomen.org
http://www.takebackthetech.net
using also contemplate
i just started using contemplate but i have no problem with duplicate images... i think i realised then that if of you just get $node->body ... it's pre-setup to contain an image-attach (pretty much the same with just pulling value of $node->teaser) however if you call specific array element like $node->content['body']['#value'] ... it'll just contain the field of the body value
[ btw my response initially was actually for the original question that sometimes you don't need contemplate to position image attachments by just playing with the value order of displaying image in teaser or in full-text you an probably achieve your goal... it's just my lesson learned from trying hard so much and playing around... i just found out that there's an easier way ;) ]
peace!
---
http://www.apcwomen.org
http://www.takebackthetech.net