Hello,

The homepage of a drupal website i'm working on consists of view listing all recent content. A news feed basically.
This view contains content from different content types (Articles, Events, basic pages and polls)
The thing is with polls, apart from the node title and the post date, I haven't been able to include the poll choices directly within the view item.
The only poll related field available from views is whether the poll is still active or not.

Any ideas on how to print the poll choices in the view item ?
At least the options. It's ok if voting isn't possible directly from the view, with node paths, I managed to print a clickable button that lets visitors go to the node if they're interested in voting.

Thanks

Comments

VM’s picture

core polls are rudimentary. I'd use something more like https://www.drupal.org/project/rate or https://www.drupal.org/project/pollim

to use core poll in views beyond a list of polls, you'd likely need some code in a custom views template.

Amstram’s picture

I guess i'll just go the custom code way then, because i like the way the core poll works. It is simple and easy to use
The alternatives you suggested don't seem to be intuitive to use by website visitors.

Thank you for your answer