Copied to clipboard

Flag this post as spam?

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


  • Kim Løwert 130 posts 116 karma points
    Dec 16, 2009 @ 11:00
    Kim Løwert
    0

    Contour form does not render when entered in the TinyMCE

    Hi,

    I'm having issues with Contour forms entered/added in TinyMCE. They do not render in the frontend. I have added a form with runat="server" to my template, but it still does not render.

    Contour is currently in trial mode. Does that have anything to do with it?

    Do any of you any suggestions?

    Kind regards,

    Kim

  • Kim Løwert 130 posts 116 karma points
    Dec 16, 2009 @ 12:02
    Kim Løwert
    0

    Hi, 

    An update. The Contour form works fine if I add it to a template (not in TinyMCE), so it seems to have something to do with TinyMCE, when I add the form.

    Any suggestions?

    Kind regards,

    Kim

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 16, 2009 @ 13:35
    Per Ploug
    0

    Hi Kim

    Tried reproducing, but sofar it works fine in my browsers (firefox, ie8 and chrome) do you have some more details? does it insert anything in tinymce? does it rende the form after saving? any js errors?

    /Per

  • criticalmaas 10 posts 28 karma points
    Jan 16, 2010 @ 21:44
    criticalmaas
    0

    Kim, I just had the same experience when trying to get a trial form working. Here is what I had set up to see the problem:

    • created sample two field form
    • saved
    • on my test homepage in a rich text field I inserted the contour form
    • save and publish
    • form shows up in the rich text editor perfectly
    • preview or view the page and I only see the the first label and an empty paragraph

     

    how I solved the problem:

    • open the template for the homepage doc
    • added the same form macro there in the template
    • added in a form runat="server" element around the macro
    • save
    • Now both forms are showing
    • I then removed the one in the template and the original shows

    So it maes to me that I did not have a <form runat="server"> since that what ASP.NET needs to work properly. Did it solve your problem?

     

    regards

    ryan

  • dominik 711 posts 733 karma points
    Mar 01, 2011 @ 08:54
    dominik
    0

    I got the same error.

    I have a global <form runat=server arround all pages.

    If i include the form inside the template it works.

    If I use the Content Editor it is not shown inside the page.

    Can somebody explain how to fix this issue?

     

    Thanks

  • Brian Scott 21 posts 41 karma points
    Mar 01, 2011 @ 12:36
    Brian Scott
    0

    This is exactly the same issue as I'm experiencing in 4.5.2. I posted about this 3 days ago here .

    Can someone please assist with this? I have a site waiting to go live to a client who are demanding the ability to place the Contour forms within any rich text editor content area in the site as expected.

  • Dean 55 posts 98 karma points
    Mar 10, 2011 @ 01:15
    Dean
    0

    Hello all, I'm having what appears to be the same issue. Have created basic form with one text field. I can add the form to a template without a problem via the add marco button when editing a template. Form renders fine on front end.

    If I add via macro button on rich text editor when editing a document it will render fine in the editor, but won't render correctly on the front end when I save and publish.

    I do get something on the front end though. Strangly this is actually rendered on the page:

    formguid="0f488ca7-caa0-47c1-b8ae-13bb46e60887"
    macroAlias="umbracoContour.RenderForm" />

    and it appears like this in the source:

    formguid="0f488ca7-caa0-47c1-b8ae-13bb46e60887"<br/>
    macroAlias="umbracoContour.RenderForm" />

    I have a very tight deadline and honestly the whole project is forms so any help is greatly appreciated.

    I'm running contour in trial mode as I don't know the domain of the site yet, but I have purchased it.

     

  • Dean 55 posts 98 karma points
    Mar 10, 2011 @ 01:37
    Dean
    0

    I have just found what is breaking this for me anyway:

    If you are inserting the form macro into the text editor, and the content of this text editor is inserted into the template via the "insert umbraco page field" button on the edit template screen, and when inserting you choose to check the "Convert Linebreaks" checkbox...It will break the form render. If you set "convertLineBreaks" to false, it will render the form properly.

  • CASTELLI 23 posts 76 karma points
    Nov 18, 2013 @ 09:35
    CASTELLI
    1

    Hi,

    I know this thread is a bit old, but I had the same issue with the lastest version of Umbraco (v6) and Contour (v3.17). I used some razor script to render the content of the page and the RTE containing the contour macro. Everything but the contour form rendered when using

    @Html.Raw(Model.GetPropertyValue("s2k_pageMainContent"))

    where s2k_pageMainContent is the RTE alias.

    I had to change to the following using umbraco.library.RenderMacroContent to make it all work :

    @Html.Raw(umbraco.library.RenderMacroContent(Model.GetPropertyValue("s2k_pageMainContent"), Model.Id))

    Hope it will help some solving their issue

Please Sign in or register to post replies

Write your reply to:

Draft