Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Polls module not working?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1517 Views
  • masson
    Avatar
    Community Member
    8 Posts

    Polls module not working? Link to this post

    Hey, I downloaded the latest trunk of the polls module, and i have the latest Silverstripe 2.2. However it seems like the polls plugins is not working correctly?, i get bunch of errors in the admin area. Can that be true or am i doing something wrong?.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Polls module not working? Link to this post

    Hey - What errors do you come across? Im currently working on that module so if you are having any errors let me know and I'll have a look into it. It should be working fine with SS 2.2.2

    Make sure you've done a db/build.

    Its fairly limited at the moment the module but Im going to adding graphing for the results (both front end and backend) in the coming week hopefully as this is needed for one of our projects

  • masson
    Avatar
    Community Member
    8 Posts

    Re: Polls module not working? Link to this post

    Hey,

    Ok i fixed the error, it seemed that i had some leftovers in the database, just one more thing, how can i display the poll on the front page?. I can´t seem to figure that out.

    And of course, thank you for your work. I appreciate it.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Polls module not working? Link to this post

    I think the documentation covers this. But in your code you need a function like

    function ShowPoll() {
       return new ShowPoll($this, 'ShowPoll');
    }

    Then in your template you need to have a $ShowPoll

    1517 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.