Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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....
How random polls can be activated?
its giving me error when i select that option.
is working on a reply...
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.
Continue discussion
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?
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....
How random polls can be activated?
its giving me error when i select that option.
is working on a reply...
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.