Closed (fixed)
Project:
Pollfield
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2007 at 05:12 UTC
Updated:
16 Jun 2011 at 15:05 UTC
Hello.
I have installed v. 5.x-1.x-dev of this module. Created a new content type, created a initial node with it, filling out questions and answers.
Upon submission, poll was not visible on the new page.
When I try to create a Content Template for the new content type, I can see the $node->field_vote (array) contents, and they correctly reflect the poll. It is just not added to the page when viewing the node.
Here is a sample of my new node type exhibiting this issue: http://www.timhudak.ca/atlantic-round-1-robert-borden-vs-jack-pickersgil...
Thank you
Comments
Comment #1
karens commentedPollfield has a unique way of displaying the results so you may need to change the way you identify it in your Contemplate. What code did you use in your template to display the field?
Comment #2
brianV commentedThank you for replying, KarenS.
I was told that it would show up at the top of the node regardless of what Contemplate I used. Here is the code:
The fields I have available w.r.t. the pollfield are:
Am I supposed to add somethign else to the Contemplate?
Comment #3
senpai commentedI can verify that the problem exists, I just don't know what to do about it. I'd offer a patch if I could figure out what the bloody was going on here.
Virgin sandbox site with CCK(everything). Create a new content type. Use three fields, a couple of multi-choice inputs, and a pollfield.
Create Content > New Poll. Add info to every field that requires it. Poll does not show on submission of new content.
Hmmm.
I canna understand why it doesn't display. And I'm not even using Contemplate! :=)
Comment #4
karens commentedTo display the pollfield in custom themes and templates you need to use:
Don't use $node->field_politician_a_bio[0]['value'] or any such value, and don't use foreach(). Content_format needs the whole pollfield, not one item at a time.
Comment #5
brianV commentedThose politican_bio fields are just other content field in the node.
So in this particular example, I would call
I have been trying this, and it is outputting nothing. I have also tried with the single quotes around 'field_vote' removed.
Thank you for the reply!
Comment #6
senpai commentedSo it sounds like a theme issue, not a code issue. Brian, I'll try this fix in a Garland site soon and report back for ya.
Comment #7
moshe weitzman commentedi can confirm this problem, and it is happenning with garland and without contemplate.
interestingly, the problem resolves itself when the node is edited. but when you first create a poll, $node->content['field_poll'][0][#value] is empty.
Comment #8
karens commentedOh... now that gives me something I can investigate. Thanks!
Comment #9
karens commentedI think I finally found the problem and committed a fix.
Comment #10
(not verified) commentedComment #11
giorgio79 commentedHello Guys,
I am trying this in D6, but having no luck with
Contemplate gives me nothing for this.
Any tips?
Comment #12
bryan kennedy commentedHey giorgio79. I closed this again and set the version back to 5.x-1.x-dev.
This issues was resolved over three years ago in the Drupal 5 version of the module which is no longer supported.
If you having an issues with the 6.13-beta1 version and contemplate, please go ahead and create a new issue with a bit more detail than what you've provided here.