Hi, it may be something easy, but I don't uderstand what I have to do with these files. I found on http://www.nibble.be/?p=81 files to make polls with Contour. The parts with Contour, the master.template and the Runway home page is ok, but what I have to do with the .dll, .cs and .config files? For now, the poll shows, I can vote and it's added in Contour entries, but I can't see the results.
Might be the contour xslt extensions that didn't get registered, could you chech the /config/xsltextensions.config to see if you see anything contour related in there
Apologies for posting in a Topic already marked as "Completed". I was just wondering if anyone had a Razor version of the code that is provided in Tim Geyssens post located here: http://www.nibble.be/?p=81
Make poll with Contour
Hi, it may be something easy, but I don't uderstand what I have to do with these files. I found on http://www.nibble.be/?p=81 files to make polls with Contour. The parts with Contour, the master.template and the Runway home page is ok, but what I have to do with the .dll, .cs and .config files? For now, the poll shows, I can vote and it's added in Contour entries, but I can't see the results.
Thank you for your help!
Comment author was deleted
Simply drop the .dll file in your bin directory
To see the results you'll need an xslt macro, the code for that is outlined in the blog post.
Regards,
Tim
Thank you Tim... as expected, it works!
Hi,
I have trouble getting the poll package to display results under 4.6.1 (.net4, iis7).
I have set the formid parameter in the macro.
Instead of results I get:
Error parsing XSLT file: \xslt\ContourPollResults.xslt
Thank you,
Dimitris
Hey,
Try opening the xslt file within Umbraco, press save and you should get an error message, this should help you debug.
Rich
Hi Rich,
Thanks for your quick response.
I managed to get it working.
Actually, I should have registered the xslt extension...
As for your comment, saving the xslt was not giving me an error.
Thank you,
Dimitris
Hi guys
Seems that you've managed to get Tim's great poll solutiuon for Contour working.
I would be happy if you''l take a minute to look at this small issue...
I'm looking for an explanation of the FormId.., please have a look at this: http://our.umbraco.org/forum/umbraco-pro/contour/26150-Contour-Poll-FormID
Best,
Morten
Hi Tim,
Am having the same error msg as Dimitris
Error parsing XSLT file: \xslt\ContourPollResults.xslt
I copied the Contour.Addons.Poll.dll in the bin folder but cant get the results from the pool to show up.
Do i need to change something in the Macros Parameter??
//fuji
Comment author was deleted
Might be the contour xslt extensions that didn't get registered, could you chech the /config/xsltextensions.config to see if you see anything contour related in there
Hi Tim,
Thanks for the response, is there anything i need to change in the Macros Parameter??
Comment author was deleted
Well if you followed the instruction on http://www.nibble.be/?p=81 you should be good, are the contour xslt extensions in the config?
Yes the contour ext is there.
<ext assembly="Umbraco.Forms.Core" type="Umbraco.Forms.Library" alias="umbraco.contour"></ext>
Tim,
Even with the ext in the config am still not getting any results.
//fuji
Comment author was deleted
think the poll also needs an xslt extension do you see contourpoll in the config file somewhere?
I have the same issue, there does'nt seem to be a contour poll ext in the config
all I have is:
<extassembly="Umbraco.Forms.Core"type="Umbraco.Forms.Library"alias="umbraco.contour"></ext>
What's the extra line to go in the config?
here is another question i have...
the template example...
this line is throwing errors - object not set to an instace of....
for pages without a poll specified.
string pollId = umbraco.presentation.nodeFactory.Node.GetCurrent().GetProperty("activePoll").Value;
the complete code chunk is this...
@Pete, possible answer here
@Bob, you need to check if the property is null before you try to access the .Value property
If you're using uComponents, uQuery has some nice extensions that handle this automatically too.
-Tom
Hi guys,
Apologies for posting in a Topic already marked as "Completed". I was just wondering if anyone had a Razor version of the code that is provided in Tim Geyssens post located here: http://www.nibble.be/?p=81
I'm desperate to see it!
Many thanks
Rick
is working on a reply...