Im trying to add the Multi Poll Module to my Umbraco (v6.0.4) website (.NET 4), but im having lots of difficulty getting it rendered on my page.
I installed the package and created a poll under the Poll Node and added the same poll to my page. I have also installed the AjaxToolKit.
When i add a ScriptManager control to my masterpage, within a form with runat="server", i still get the error: "The control with ID 'UpdatePanelPoll' requires a ScriptManager on the page." And i still see the following code in the source of the page:UMBRACO_MACROsortresults="0"pollnodeid="1645"widthtotalvotes="0"displayonly="0"randompoll="0"hidesubmit="0"submitonselect="0"hidequestion="0"macroAlias="Poll"/>
When i use the ToolkitScriptManager instead of ScriptManager, i get the same error and the macro is still not rendered on the page and the above code is still in the sourcecode of the page.
Macro not rendered in page
Im trying to add the Multi Poll Module to my Umbraco (v6.0.4) website (.NET 4), but im having lots of difficulty getting it rendered on my page.
I installed the package and created a poll under the Poll Node and added the same poll to my page.
I have also installed the AjaxToolKit.
When i add a ScriptManager control to my masterpage, within a form with runat="server", i still get the error: "The control with ID 'UpdatePanelPoll' requires a ScriptManager on the page." And i still see the following code in the source of the page:UMBRACO_MACRO sortresults="0" pollnodeid="1645" widthtotalvotes="0" displayonly="0" randompoll="0" hidesubmit="0" submitonselect="0" hidequestion="0" macroAlias="Poll" />
When i use the ToolkitScriptManager instead of ScriptManager, i get the same error and the macro is still not rendered on the page and the above code is still in the sourcecode of the page.
What am i doing wrong?
Hello,
Can you paste the code of your template here? Maybe I can see what goes wrong.
Jeroen
Default.master:
<%@MasterLanguage="C#"AutoEventWireup="true"Inherits="MagazineItem" %>
<!DOCTYPEHTML>
<htmllang="nl">
<head>
<metacharset="utf-8">
<title><asp:ContentPlaceHolderID="cphMetaTitle"runat="server"/></title>
<asp:ContentPlaceHolderID="cphMetaDescription"runat="server"/>
<metaname="viewport"content="width=device-width, initial-scale=1.0">
<linkrel="stylesheet"type="text/css"media="screen"href="/css/MyFontWebfontsKit.css"/>
<linkrel="stylesheet"type="text/css"media="(min-width: 1281px)"href="/css/layout.css"/>
<linkrel="stylesheet"type="text/css"media="(min-width: 800px) and (max-width: 1280px)"href="/css/layout_1024.css"/>
<linkrel="stylesheet"type="text/css"media="(min-width: 701px) and (max-width: 800px)"href="/css/layout_800.css"/>
<linkrel="stylesheet"type="text/css"media="(max-width: 700px)"href="/css/layout_320.css"/>
<linkrel="stylesheet"type="text/css"media="(min-height: 900px)"href="/css/layout_height.css"/>
<linkrel="stylesheet"type="text/css"media="(min-height: 801px) and (max-height: 899px)"href="/css/layout_height_1024.css"/>
<linkrel="stylesheet"type="text/css"media="(max-height: 800px)"href="/css/layout_height_600.css"/>
<linkrel="stylesheet"type="text/css"media="screen"href="/css/editorStyles.css"/>
<scriptsrc="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<asp:ContentPlaceHolderID="cphSubHeader"runat="server"/>
</head>
<body>
<formrunat="server">
<asp:ScriptManagerID="scriptManager1"runat="server"/>
<asp:ContentPlaceHolderID="cphBackgrounds"runat="server"/>
<header>
<!-- INDEX -->
<navid="navTop"class="nav-collapsed">
<divid="navTop-header">
<span>INHOUDSOPGAVE</span>
</div>
<umbraco:MacronavOrientation="top"ID="magazineIndexTop"Alias="magazineIndex"runat="server"/>
</nav>
<asp:ContentPlaceHolderID="cphLogo"runat="server"/>
<navid="navLeft"class="nav-collapsed">
<umbraco:MacroID="magazineIndexLeft"Alias="magazineIndex"runat="server"/>
</nav>
<!-- END INDEX -->
</header>
<!-- NAVIGATION -->
<umbraco:MacroID="nextMagazineItem"Alias="NextMagazineItem"runat="server"/>
<!-- END NAVIGATION -->
<asp:ContentPlaceHolderID="cphContent"runat="server"/>
<!-- END CONTENT -->
<!-- End Wrapper -->
<asp:RepeaterID="rptMagazineAds"runat="server">
<HeaderTemplate>
<divid="ad-page-overlay">
<divclass="ad-page-container">
<spanid="close-ad-page"class="ad-page-close-button">sluiten</span>
</HeaderTemplate>
<ItemTemplate>
<divclass="small-ad-container">
<a
href="<%# DataBinder.Eval(Container.DataItem, "targetURL") %>"
cm-hash="<%# DataBinder.Eval(Container.DataItem, "logHash") %>"
target="_blank"
title="<%# DataBinder.Eval(Container.DataItem, "Titel") %>">
<imgsrc="http://binaries.qompas.nl/getbinary.ashx?database=cm&guid=<%# DataBinder.Eval(Container.DataItem, "mediaGuid") %>"/>
</a>
</div>
</ItemTemplate>
<FooterTemplate>
</div>
</div>
</FooterTemplate>
</asp:Repeater>
<footer>
<divid="footer-wrapper">
<sectionid="share-ribbon">
<!-- AddThis Button BEGIN -->
<divclass="addthis_toolbox addthis_default_style ">
<aclass="addthis_button_email"></a>
<aclass="addthis_button_facebook_like" <%="fb:like:layout"%>="button_count"></a>
<aclass="addthis_button_tweet"></a>
</div>
<scripttype="text/javascript"src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51e8e26265c759d2"></script>
<!-- AddThis Button END -->
</section>
</div>
</footer>
<scriptsrc="/scripts/qm.magazineindex.js"defer="defer"></script>
<scriptsrc="/scripts/qm.adpage.js"defer="defer"></script>
<asp:ContentPlaceHolderID="cphFooter"runat="server"/>
</form>
</body>
</html>
Artikel.master, which uses default.master:
<%@MasterLanguage="C#"MasterPageFile="~/umbraco/masterpages/default.master"AutoEventWireup="true" %>
<asp:ContentContentPlaceHolderID="cphMetaTitle"runat="server">
<umbraco:Itemfield="metaTitle"runat="server"/> | QM! Qompas
</asp:Content>
<asp:ContentContentPlaceHolderID="cphMetaDescription"runat="server">
<metaname="description"content="<umbraco:Item field='metaDescription' runat='server' />"/>
</asp:Content>
<asp:ContentContentPlaceHolderID="cphSubHeader"runat="server">
<linkrel="stylesheet"type="text/css"media="(min-width: 1281px)"href="/css/article.css"/>
<linkrel="stylesheet"type="text/css"media="(min-width: 800px) and (max-width: 1280px)"href="/css/article_1024.css"/>
<linkrel="stylesheet"type="text/css"media="(min-width: 701px) and (max-width: 800px)"href="/css/article_800.css"/>
<linkrel="stylesheet"type="text/css"media="(max-width: 700px)"href="/css/article_320.css"/>
<linkrel="stylesheet"type="text/css"href="/css/poll_style.css"/>
<scriptsrc="/scripts/qm.responsive.js"></script>
<scriptsrc="/scripts/qm.animation.js"></script>
<scriptsrc="/scripts/jquery.cycle2.js"></script>
<scriptsrc="/scripts/jquery.cycle2.carousel.js"></script>
<script> $.fn.cycle.defaults.autoSelector = '.slideshow';</script>
</asp:Content>
<asp:ContentContentPlaceHolderID="cphBackgrounds"runat="server">
<!-- BACKGROUNDS -->
<divid="background"class="slideshow vertical"
data-cycle-fx=carousel
data-cycle-timeout=0
data-cycle-speed=300
data-cycle-next="#button-nav-down"
data-cycle-prev="#button-nav-up"
data-cycle-carousel-visible=1
data-cycle-carousel-vertical=true
data-cycle-auto-height=false
data-cycle-slides="> div"
>
<umbraco:MacroAlias="MagazineItemBackgrounds"runat="server"/>
</div>
<!-- END BACKGROUNDS -->
<!-- NAVIGATION -->
<sectionid="top-nav"title="Vorige pagina">
<imgsrc="/images/nav-up.png"alt="vorige pagina"id="button-nav-up"class="display-none"/>
</section>
<sectionid="bottom-nav"title="Volgende pagina">
<imgsrc="/images/nav-down.png"alt="volgende pagina"id="button-nav-down"/>
<imgsrc="/images/nav-stop.png"alt="laats pagina"id="button-nav-down-stop"class="display-none"/>
</section>
<!-- END NAVIGATION -->
</asp:Content>
<asp:ContentContentPlaceHolderID="cphContent"runat="server">
<divclass="wrapper">
<!-- CONTENT -->
<sectionid="content">
<sectionid="articles">
<!-- Article content is rendered here, Poll might be a part of it -->
<umbraco:MacroAlias="MagazineItemContent"runat="server"/>
<divclass="clear-both"></div>
</section>
</section>
</div>
</asp:Content>
<asp:ContentContentPlaceHolderID="cphFooter"runat="server">
<scriptsrc="/scripts/qm.navigation.js"defer="defer"></script>
</asp:Content>
Code of MagazineItemContent:
<?xmlversion="1.0"encoding="UTF-8"?>
<!DOCTYPExsl:stylesheet [ <!ENTITYnbsp" ">]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco="urn:umbraco"xmlns:umbraco.library="urn:umbraco.library"xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes"xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath"xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions"xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:outputmethod="xml"omit-xml-declaration="yes"/>
<xsl:paramname="currentPage"/>
<xsl:templatematch="/">
<xsl:for-eachselect="$currentPage/Artikelpagina">
<div>
<xsl:attributename="id">page-<xsl:value-ofselect="position()"/></xsl:attribute>
<xsl:attributename="class">
<xsl:choose>
<xsl:whentest="position()=1">current-page</xsl:when>
<xsl:otherwise>hidden-page</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:variablename="columnCount"select="count(Tekstblok)" />
<xsl:for-eachselect="Tekstblok">
<xsl:choose>
<xsl:whentest="string-length(tekst) > 0">
<article>
<xsl:attributename="class">column-count-<xsl:value-ofselect="$columnCount"/>-content marginTop<xsl:value-ofselect="marginTop"/> content</xsl:attribute>
<xsl:iftest="string-length(achtergrondkleur) > 0">
<xsl:attributename="style">background-color: <xsl:value-ofselect="achtergrondkleur" />;<xsl:iftest="string-length(opacity)"> opacity: <xsl:value-ofselect="opacity" />;</xsl:if> margin-right: 0;</xsl:attribute>
</xsl:if>
<xsl:value-ofselect="tekst"disable-output-escaping="yes"/>
</article>
</xsl:when>
<xsl:otherwise>
<articlestyle="background: transparent;">
<xsl:attributename="class">column-count-<xsl:value-ofselect="$columnCount"/></xsl:attribute>
</article>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Anybody have an answer on this?
Maybe there is another Poll module i can use that works?
is working on a reply...