Copied to clipboard

Flag this post as spam?

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


  • saji 83 posts 38 karma points
    Nov 17, 2009 @ 13:03
    saji
    0

    How can i list the polls?

    Hi All,

    I'm using umbraco 4. and i have installed the polls successfully.

    now i want to add more polls to the site and have to show the last added poll in the home page.

    In the arcive i have to show all other polls with respective results (Users are not allowed to poll on the archived polls)

    Is it possible to achieve?

     

     

     

  • saji 83 posts 38 karma points
    Nov 17, 2009 @ 14:31
    saji
    0

    By refering the forum, i did like this:

     

    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">

    <xsl:variable name="macro">

    <![CDATA[<?UMBRACO_MACRO macroAlias="Poll" PollNodeId="]]>

    <xsl:value-of select="$currentPage/@id"/>

    <![CDATA["DisplayOnly="1" SubmitOnSelect="0" HideSubmit="0" SortResults="1" WidthTotalVotes="0" HideQuestion="0" RandomPoll="0" Alias="Poll" runat="server"></?UMBRACO_MACRO>]]>

    </xsl:variable>

    <xsl:value-of select="umbraco.library:RenderMacroContent($macro, '$currentPage/@id')" disable-output-escaping="yes"/>

    </xsl:template>

    Its not working. What i'm doing wrong?

    Any help....

  • saji 83 posts 38 karma points
    Nov 17, 2009 @ 16:29
    saji
    0

    How random polls can be activated?

    its giving me error when i select that option.

  • 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