Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jan 06, 2011 @ 21:29
    Carlos
    0

    Add Umbraco:Item inside Macro FormGuid???

    I asked this in the Contour area but not sure if that section gets hit that much.

    But here goes.

    Don't know if this has been asked yet.

    I am putting a Contour form inside my template, no problem.

    I want the FormGuid to pull from my editors.

    I have the FormGuid ID using

    <umbraco:Item field="chooseContactForm" runat="server"></umbraco:Item>

    This gives me my FormGuid when I choose a Contour form in the editor. Just spits out my ID.

    I then try to put the FormGuid inside the Contour Macro inside my template like so:

    <form ID="GeneralContactForm" runat="server">
    Should be a contact form
    <umbraco:Macro FormGuid="&lt;umbraco:Item field=&quot;chooseContactForm&quot; runat=&quot;server&quot;&gt;&lt/umbraco:Item&gt;
    Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>
    </form>

    Can you put an Umbraco:Item inside the FormGuid?????

    I am assuming you can not put a runat="server" inside of another. But what is the alternative to get the Guid from the ChooseContactForm field for my editors. Since we can not put .Net inside XSLT, this is my alternative solution, but I get and error
    <div class='contourErrorMessage'>Form could not be loaded, form is either missing or damaged</div>

    All help is much appricated. Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft