Please login or register to participate.
Wiki Page

Is there any plugin for plone or cyn.in to create a poll?

.

Is there any plugin for plone or cyn.in to create a poll ?  I try to install PlonePoll, but failed.

 

Hi there I'm editing this post, so that you have an idea how to integrate the plone product plonepopoll into your cynin-site!

 

I'm referring to the how-to --> http://www.cynapse.com/community/home/cyn.in-developers/adding-additional-new-products-to-cyn.in-3.1.3/view?searchterm=add%20portal%20type#1282773676

 

The how-to was very useful but unfortunately, the integration of the product is not yet completed.

 

So here is what I made:

- Connect to your server via ssh

- edit the file /home/cynin/buildout/buildout.cfg

   --> add the bold marked lines

[cyninbase]
# Add additional eggs here
# elementtree is required by Plone
eggs =
    ubify.policy
    ubify.coretypes
    ubify.spaces
    ubify.viewlets
    ubify.cyninv2theme
    ubify.smartview
    ubify.recyclebin
    ubify.xmlrpc
    ubify.ffxmpp
   
    elementtree
    archetypes.schemaextender
    Products.fatsyndication
    Pygments
    jsonlib==1.3.10
    plone.reload
    Products.PlonePopoll

zcml =
    ubify.policy
    ubify.coretypes
    ubify.spaces
    ubify.viewlets
    ubify.cyninv2theme
    ubify.smartview
    ubify.recyclebin
    ubify.xmlrpc
    ubify.ffxmpp
    ubify.cyninv2theme-overrides
    ubify.viewlets-overrides
    plone.reload
    archetypes.schemaextender:caching.zcml
    Products.fatsyndication
    Products.PlonePopoll

 

- after that go to /home/cynin/buildout/src/ubify.policy/ubify/policy/config.py

   --> add the bold marked lines

 

spacesdefaultaddablenonfolderishtypes = ('Document',
                                         'Event',
                                         'File',
                                         'Image',
                                         'Link',
                                         'Blog Entry',
                                         'Video',
                                         'Discussion',
                                         'Audio',
                                         'PlonePopoll',
                                         )

PRODUCT_DEPENDENCIES = ('Calendaring',

                        'plone.app.iterate',

                        'Marshall',

                        'CMFPlacefulWorkflow',

                        'CMFNotification',

                        'ZipFileTransport',

                        'Scrawl',

                        'ubify.coretypes',

                        'ubify.smartview',

                        'ubify.spaces',

                        'ubify.viewlets',

                        'ubify.cyninv2theme',

                        'ubify.recyclebin',

                        'ubify.xmlrpc',

                        'Products.OpenXml',

                        'ATRatings',

                        'ubify.ffxmpp',

                        'Products.PlonePopoll',

 

                        )

 

- now go to /home/cynin/buildout/src/ubify.coretypes/ubify/coretypes/profiles/default/types/ContentSpace.xml

    --> add the bold marked lines

<object name="ContentSpace" xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="cynin">
 <property name="product">ubify.coretypes</property>
 <property name="title" i18n:translate="">Root</property>
 <property name="description" i18n:translate="">An area to collaborate</property>
 <property name="content_icon">folder_icon.png</property>
 <property name="factory">addContentSpace</property>
 <property name="filter_content_types">True</property>
 <property name="allowed_content_types">
  <element value="Document"/>
  <element value="Event"/>
  <element value="File"/>
  <element value="Image"/>
  <element value="Link"/>
  <element value="Blog Entry"/>
  <element value="ContentSpace"/>
  <element value="Video"/>
  <element value="Discussion"/>
  <element value="Audio"/>
  <element value="Poll"/>
 </property>

 

- now go to /home/cynin/buildout/src/ubify.coretypes/ubify/coretypes/profiles/default/types/ContentRoot.xml

    --> add the bold marked lines

<object name="ContentRoot" xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="cynin">
 <property name="product">ubify.coretypes</property>
 <property name="title" i18n:translate="">Root</property>
 <property name="description" i18n:translate="">The root space of this Cyn.in site</property>
 <property name="content_icon">cynin_icon.png</property>
 <property name="factory">addContentRoot</property>
 <property name="filter_content_types">True</property>
 <property name="allowed_content_types">
  <element value="Document"/>
  <element value="Event"/>
  <element value="File"/>
  <element value="Image"/>
  <element value="Link"/>
  <element value="Blog Entry"/>
  <element value="ContentSpace"/>
  <element value="Video"/>
  <element value="Discussion"/>
  <element value="Audio"/>
  <element value="Poll"/>
 </property>

 

- now you're ready to re-buildout your cynin-site

- you do that via the command-line

- move to the directory /home/cynin/buildout and execute the command ./bin/buildout -vNc user.cfg

- now it does some crazy stuff ;)

- if you first buildout with a new product it will take a while to run through the whole process - it will say that "We don't have the distribution that satisfies 'Products.PlonePopoll' or so, THAT'S NORMAL!

 

- if the  process is finished execute the command ./bin/instance fg

- that will start the zope instance in the foreground so that you can see any errors that will occur

 

- ALMOST DONE!!


- Open a browser and move to http://IP-of-cyn-in:8080/manage

- enter admin and secret if you haven't changed it

 

- go to cynin -> portal_quickinstaller

- ther you will see Products.PlonePopoll under installable products

 

- just check the box left to Ubify Site Policy and go for Reinstall - nothing else!

- after that the PlonePopoll will be under Installed Products

- if that was successful go to portal_types

- there you have to edit ContentRoot -> Allowed content types - add the content type PlonePopoll to the allowed types, let the others selected - hit "Save"

- there you have to edit ContentSpace -> Allowed content types - add the content type PlonePopoll to the allowed types, let the others selected - hit "Save"

 

- Now you're done!!

 

- go to your cyn-in-site and click on the "New"-Button

- there you'll find this (maybe in englisch, because I'm from germany ;) )

new-window

 

- so you can edit a poll to your site!!

 

- you can even show the most recent poll as a portlet, just go to manage portlets and add "Poll" to your portlets!

 

What needs to be done?!

- add the new content_type for the most recent blog-entrys

- add the new content_type to the statistics

- add the new content_type to the pie-chart

- add the new content_type to the activity-stream

- add the new content_type to the application_views and let it correctly display the most recent entrys

- let the poll be rateable and commentable

- display the change-date, creator, status and so on for the poll

 

It sounds like a lot of work but I think if we can add the poll to the existing the content_types (ubify.coretypes instead of PlonePopoll) pretty much everything will work like an original content_type of cynin!

 

I hope you like the tutorial and you will get the poll working!!

 

Comments (15)
tmatysiak Oct 12, 2010 04:43 PM
i would be very interested too!
would be very nice if this is possible!
gsiak Oct 12, 2010 05:34 PM
Why didn't you use Google Apps Forms, which you can integrate into WIki or Blog by object HTML tag (instead of iframe which is offered by Google as snipet):
 
.lt.object style="float: left;" data="string behind src= parameter in iframe" type="text/html" height="400" width="400".gt.
.lt./object.gt.
viraf Oct 13, 2010 08:03 AM
We have been contemplating with the idea for having a poll content type for a long time, however there are a multiple ways we think the poll content type can be useful.
1. As a standard content type with no application view, but only single poll portlet
2. Poll as a feedback option on existing content type
3. As an inline content type embedded in existing content types like wiki pages, blogs
4. As a standard content type with application views.

Do share on how would you like to see polls in Cyn.in
tmatysiak Oct 13, 2010 11:34 AM
I would like to have it as a standard content type, so that anbody can easily start a poll for whatever he likes. we would use that to scedule meetings or appointments or team events.
edith Oct 13, 2010 07:25 PM
I go for option one: don't connect it to other content types, just have it clearly seperated and appearing in the portlet..
tmatysiak Nov 05, 2010 07:13 AM
Hi there,
i've added PlonePopoll to my environment and I can start a new poll over the "new"-Button and after that I can also add it to a space or so as a portlet, so that everybody can easily vote for whatever he/she wants! :-)
gsiak Nov 08, 2010 09:36 AM
Great! Can you describe how you have integrated this poll?
gsiak Nov 09, 2010 08:53 PM
ok sorry, have read to article above ;-). Many THX for this details.
knylander Nov 12, 2010 08:40 PM
.Hi, Tmatysiak,

I tried the steps you listed above for installing Plone Help Center. The buildout worked okay and Cyn.in started. However, reinstalling Ubify Site failed with an error for the placeful_workflow_policy for Plone Help Center attribute.

I added the content types listed in ZMI for PHC, but there are a lot and I'm not sure I'm getting all of them. I've tried several times and haven't had much luck. I'll keep trying and let you know.

Kim
tmatysiak Nov 14, 2010 01:58 PM
Hi knylander,
the type in "spacesdefaultaddablenonfolderishtypes" have to match with the portal_type in the zmi!

So the naming of the PHC have to match in the config.py and the portal_type in the zmi. You have to look at the Title of the help center to match it!
Let me know if you have difficulties with getting it to work properly :)
knylander Nov 20, 2010 01:58 AM
I went through the abundance of content types and had them match the ones in the zmi. I spent a full day trying to get it to work. I did see the content types in ZMI but never under Add New. The only thing I managed to do was to have the Add New section display an error message (all of the content types disappeared).
tmatysiak Nov 20, 2010 02:05 PM
hi knylander!
can you please do this:
match the names in spacesdefaultaddablenonfolderishtypes and portal_types for the help center.
after that do a buildout again!
then shutdown the zope instance and restart it via the command-line in the foreground: /home/cynin/buildout/bin/instance fg

then go to your cynin site and try to add a new document.
if the error-message "The requested content cannot be loaded.
Please try again later" appears check the output of your zope instance command-line. it has to be something like "key-error" or something like that. it that happens there has to be some misspelling of the portal_type and the spacesdefaultaddablenonfolderishtypes.

if you have still problems let me know with some output of the zope instance errors.

regards
tino
vchui Apr 10, 2013 11:01 PM
Is there an update to adding polls to Cyn? I followed the instructions above and its seems to work find - at least up to the point where I can add a poll - however when viewing the poll it is completely blank. Do I need to do the steps that says "What needs to be done?" or is that just have it integrate more natively?
 
Loading