Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Profiterole 232 posts 264 karma points
    Dec 06, 2010 @ 01:26
    Profiterole
    0

    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

    Dec 06, 2010 @ 09:37

    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

  • Profiterole 232 posts 264 karma points
    Dec 07, 2010 @ 14:54
    Profiterole
    0

    Thank you Tim... as expected, it works!

  • Dimitris Chrysomallis 21 posts 73 karma points
    Sep 13, 2011 @ 09:59
    Dimitris Chrysomallis
    0

    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

  • Rich Green 2246 posts 4008 karma points
    Sep 13, 2011 @ 10:34
    Rich Green
    0

    Hey,

    Try opening the xslt file within Umbraco, press save and you should get an error message, this should help you debug.

    Rich

  • Dimitris Chrysomallis 21 posts 73 karma points
    Sep 13, 2011 @ 11:26
    Dimitris Chrysomallis
    0

    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

  • Morten Balle 38 posts 129 karma points
    Nov 22, 2011 @ 12:08
    Morten Balle
    0

    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

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 29, 2012 @ 13:36
    Fuji Kusaka
    0

    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

    Mar 01, 2012 @ 09:20

    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

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 01, 2012 @ 10:09
    Fuji Kusaka
    0

    Hi Tim, 

    Thanks for the response, is there anything i need to change in the Macros Parameter??

  • Comment author was deleted

    Mar 01, 2012 @ 10:13

    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?

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 01, 2012 @ 10:55
    Fuji Kusaka
    0

    Yes the contour ext is there.

    <ext assembly="Umbraco.Forms.Core" type="Umbraco.Forms.Library" alias="umbraco.contour"></ext>
  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 01, 2012 @ 13:31
    Fuji Kusaka
    0

    Tim, 

    Even with the ext in the config am still not getting any results. 

     

    //fuji

  • Comment author was deleted

    Mar 01, 2012 @ 13:50

    think the poll also needs an xslt extension do you see contourpoll in the config file somewhere?

  • Pete 213 posts 285 karma points
    Jul 09, 2012 @ 16:13
    Pete
    0

    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?

     

  • bob baty-barr 1180 posts 1294 karma points MVP
    Jul 11, 2012 @ 01:17
    bob baty-barr
    0

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

    <% 
    string pollId = umbraco.presentation.nodeFactory.Node.GetCurrent().GetProperty("activePoll").Value;             
    if(!string.IsNullOrEmpty(pollId)){
       if (Request.Cookies[pollId] == null) { %>                   
      <umbraco:Macro FormGuid="[$activePoll]" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>                   
    <% } 
    else {%>  
      <umbraco:Macro formid="[$activePoll]" Alias="PollScript" runat="server"></umbraco:Macro>                   
    <% }} %>
  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jul 11, 2012 @ 04:41
    Tom Fulton
    0

    @Pete, possible answer here

    @Bob, you need to check if the property is null before you try to access the .Value property

    var pollProperty pollId = umbraco.presentation.nodeFactory.Node.GetCurrent().GetProperty("activePoll");
    if (pollId != null) {
    string pollId = pollProperty.Value;
    ...

    If you're using uComponents, uQuery has some nice extensions that handle this automatically too.

    -Tom

  • Rick 92 posts 278 karma points
    Sep 18, 2012 @ 12:59
    Rick
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies