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
    Dec 15, 2010 @ 17:35
    Carlos
    0

    How do you add a Contour Contact Form to XSLT?

    How do you add a Contour Contact Form to and XSLT file?  
    I made a simple Contour Contact Form using the basic default form editor in Contour.

    How do I add the form to an XSLT file so I can use the Macro in my Template?

    Help is much appreciated. I can not watch the videos.  So that is why I am posting this here.

     

    Thanks in advance.

  • Dan 1288 posts 3921 karma points c-trib
    Dec 15, 2010 @ 18:08
    Dan
    0

    Hi Carlos,

    You shouldn't need to do anything with macros.  When you install Contour it should automatically add an option to the macro drop-down list in the WYSIWYG editor ("Insert from Umbraco Contour").  Select that and it'll then ask which form you want to add.

    Hope this helps...

    EDIT: I should add - this should still work in your template editor via the 'insert macro' button if you want to bypass the WYSIWYG editor altogether and just embed the macro directly into your template.

  • Carlos 338 posts 472 karma points
    Dec 15, 2010 @ 18:12
    Carlos
    0

    Hmmm, that is interesting. Was not aware of that.  Thanks for the help I will try that. If it works I will mark as correct.

    Thanks

  • Carlos 338 posts 472 karma points
    Dec 15, 2010 @ 22:41
    Carlos
    0

    I just tried to post something and it did not post.

    I tried to add this to the WYSIWYG and the form did not render. 

    I see in Contour, when you make a basic contact form, there is a "Next" button and you can add or edit a form step. Is there something I am supposed to do with this?

    I also need to add this via the WYSIWYG like Dan has suggested for our content editor to add to the page.  We do not want it in every page that uses the template.

    I guess I need step by step instructions to ensure that this works appropriately.

    Thanks in advance.

  • Dan 1288 posts 3921 karma points c-trib
    Dec 16, 2010 @ 00:01
    Dan
    0

    Hi Carlos,

    So you have the form built in Contour, right?  And you're able to add it using the 'insert macro' button in the WYSIWYG editor, but it doesn't render on the web page when you save and publish, right?

    If this is right, then I suspect it's because your template doesn't contain a <form runat="server"></form> tag around the content in which the macro is being rendered.

    Let us know if this still doesn't solve it or if you need more detail.

  • Carlos 338 posts 472 karma points
    Dec 16, 2010 @ 01:41
    Carlos
    0

    Ok,

    Here is my issue, I added the form to the default Umbraco item bodyText WYSIWYG. The form Rendered fine when I wrapped a form tag around the umbraco:Item bodyText in the Template. 

    I have an custom Macro rendering multiple items on the page all using a WYSIWYG for each item.  I get text, images, Flash video to render in each item no problem.

    I tried wrapping the Macro in the Template in the Form tag then adding the Contour Form to the WYSIWYG in my editor to one item. The form did not render. In the HTML I am getting:

    <?UMBRACO_MACRO
    formguid="9759a43b-41df-41bb-a5e9-edacb883366a"
    macroAlias="umbracoContour.RenderForm" />

    Which means the form is trying to show itself but is not showing up on the User's end.

    Is there a difference between a default Umbraco item rendering the form properly vs trying to render the form from a custom Macro that is using a custom property.
    I know there probably shouldn't be but I have not gotten it to render quite yet.

    The code for my template is below:

    <asp:Content ContentPlaceHolderId="MainContentPlaceholderInternal" runat="server">
      <div id="webpageTemplateContent">
        <div id="webpageTemplate-Col2">
          <h3> <umbraco:Item field="pageSubHeader" runat="server"></umbraco:Item></h3>
         
          <umbraco:Item field="bodyText" runat="server"></umbraco:Item>
          <umbraco:Macro Alias="Science-Staff" runat="server"></umbraco:Macro>
        </div>
      <div id="webpageTemplate-Col1">
        <form runat="server" ID="GeneralFormTag">
          <umbraco:Macro Alias="ScienceAccordian" runat="server"></umbraco:Macro>
        </form>
        </div>
      </div><!--end #webpageTemplateContent-->

     

    Here is an image of what the front end it. I have marked where the form is supposed to render.

  • Carlos 338 posts 472 karma points
    Dec 30, 2010 @ 17:54
    Carlos
    0

    About 2 weeks ago I posted about this. Is there a resolve on this??? Can anyone from the Umbraco team help me out??

Please Sign in or register to post replies

Write your reply to:

Draft