I'm wondering how I can put polls within a page, I want to have several polls in each of my pages but I can't see any way of doing this, I just see that I can add a poll somewhere.

Thanks in advance.

Comments

RobintheGoblin’s picture

bump

jax’s picture

I'm pretty sure there is a module that allows nodes to be included in other nodes but i cannot seem to find it. I'm also not sure if that is what you want to achieve.

RobintheGoblin’s picture

That would work... it wouldn't necessarily be the most efficient way of doing it though.

nilamr’s picture

Hi,

I am also looking to create a page with multiple live polls alongwith other content. I am very new to Drupal / CMS and this whole technology.. however, I read a book on Drupal and it says that one can add many "nodes" or "contents" into a "book". I wonder if you try it.. if you do, please share what you learn.

Thanks
Nilam

ak’s picture

  print node_view(node_load(array('nid' => 123)), 1);

where 123 should be replaced with the number (nid) of your poll node
and your "input format" must be set to "php code".

nilamr’s picture

ak,

this works great. thanks for your sugesstion. I did run into another issue though.
I used this in table created by table manager and i placed a poll in the table.
This thing saves the current status of the poll into the table - so when I vote on the poll, and come back to the table, it still shows me the status of the poll before I voted on it.... (essentally means, its not showing me updated poll everytime I look at the table).

Please let me know if youwhere 'nid' is the node id for the poll and it looks great... i did encounter one problem though. This thing saves the current status of the poll into the table - so when I vote on the poll, and come back to the table, it still shows me the status of the poll before I voted on it.... (essentally means, its not showing me updated poll everytime I look at the table).

Any sugesstion?

Thanks for your help.

Nilam

ak’s picture

Hmm... Could this be some kind of cash issue. Are you logged in at the moment you're looking at that table, if not you may see a cached page and not the updated poll. Just a suggestion ...

webliving’s picture

I too have questions about this polling feature. I want to poll about a particular type of content, one poll per page. Your suggestion has the placement meaning that I can place the poll on the page but this is no tie to that page. Even if I formulate the title of the poll to that page, how can I display the right poll on the right page? The poll display seems set for the latest poll. Any ideas?

Thanks,

nilamr’s picture

yes, you can place poll in a page.
- create a poll, see its node id
- in text area in the page type
[node:xy]
- where xy is the node id
- make sure the input format is on full html
and ofcourse you can add anyother text in the node

i played aroung with it and it works

Also have a look at userreview or nodereview or nodevote modules.

webliving’s picture

Thanks. I was busy writing my own module and did not see your comments until now. These modules you mentioned here look like what I can use but I am still on 4.6 so I did not bother with them. What I did with my module is: I allow users to create content of our own type and I then create a poll and hook them both up with taxonomy term underneath and present the term to the user instead of the content node. My module seems working as expected. It looks though my work will be wasted when we move to 4.7 since there are modules available to do what I am doing now there.