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 ;) )

- 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!!

Blog
Status Log
would be very nice if this is possible!
.lt.object style="float: left;" data="string behind src= parameter in iframe" type="text/html" height="400" width="400".gt.
.lt./object.gt.
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
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! :-)
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
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 :)
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