Umbraco form rendering in backend not content front end
Hi,
I've followed the instructions in the umbraco.tv video on using umbraco forms. When I add the form onto a text page in the rich text editor the form renders in the backend. When I save and publish and view in the frontend, I just see Macro alias: umbracoforms.RenderForm, not the form. The page is a grid based page with the RTE control, should that make a difference?
The master page contains the following just before the close body tag
I've also just noticed that when I go to create a new contour form (it asked me this morning if I wanted to upgrade to a new version 4.0WIP.4.0.0-Build.84) I can no longer create a new form or save an existing form. I get the message 'Form failed to save:' with no error message. Looking in the tracelogs I'm not seeing any exceptions.
When I add the form via Content-Tab -> RichtTextEditor -> Macro -> insert form
I get "Macro alias: umbracoforms.RenderForm"-error instead of the form.
When add a macro directy in the template "@Umbraco.RenderMacro("umbracoforms.RenderForm", new {FormGuid="bd6f055e-6a80-4c33-97bd-89690c93d8c6"})" it is displayed correctly.
Edit:
It works when I add the form with the "macro" propertie but not with the RTE, is this a bug?
I think that this should been reported as a bug. I have just tried the latest nightly build UmbracoCms.7.2.1-build.235, and the form renders fine in the backoffice in the richtext editor but on the front end I also get the Macro alias: umbracoforms.RenderForm"-error instead of the form.
Did anyone find a fix or workaround for this? It's a showstopper for my site (my first with Umbraco 7) and will push me back to U6 if I can't find a fix for it.
That linked issue says that "Not sure this even should be supported, the whole point of the grid is to get away from macros in the RTE". This led me to investigate more, and I now see that it's possible to add a "Macro" editor to the grid, although the process for this is pretty convoluted (Developer > Data types > Grid TextPage > click the image next to the Row Configuration that you're using > click the very pale grey pox that appears on the right > select Macro).
I would suggest that perhaps the Macro editor should be available by default, as (in my opinion) it's very hard to find at the moment.
However, my particular issue is now resolved, so thanks for pointing me in the right direction :)
Umbraco form rendering in backend not content front end
Hi,
I've followed the instructions in the umbraco.tv video on using umbraco forms. When I add the form onto a text page in the rich text editor the form renders in the backend. When I save and publish and view in the frontend, I just see Macro alias: umbracoforms.RenderForm, not the form. The page is a grid based page with the RTE control, should that make a difference?
The master page contains the following just before the close body tag
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/mvc/5.1/jquery.validate.unobtrusive.min.js"></script>
@Umbraco.RenderMacro("umbracoforms.RenderScripts")
I've modified the InsertUmbracoForm partial script to contain Html.RenderAction("Render", "UmbracoForms", new {formId = g, mode = "form"});
I'm using umbraco 7.2.1
I've also just noticed that when I go to create a new contour form (it asked me this morning if I wanted to upgrade to a new version 4.0WIP.4.0.0-Build.84) I can no longer create a new form or save an existing form. I get the message 'Form failed to save:' with no error message. Looking in the tracelogs I'm not seeing any exceptions.
Anyone found a solution for that problem?
When I add the form via Content-Tab -> RichtTextEditor -> Macro -> insert form
I get "Macro alias: umbracoforms.RenderForm"-error instead of the form.
When add a macro directy in the template "@Umbraco.RenderMacro("umbracoforms.RenderForm", new {FormGuid="bd6f055e-6a80-4c33-97bd-89690c93d8c6"})" it is displayed correctly.
Edit:
It works when I add the form with the "macro" propertie but not with the RTE, is this a bug?
Hi Chris,
I think that this should been reported as a bug. I have just tried the latest nightly build UmbracoCms.7.2.1-build.235, and the form renders fine in the backoffice in the richtext editor but on the front end I also get the Macro alias: umbracoforms.RenderForm"-error instead of the form.
So report it here http://issues.umbraco.org/issues under CON, so the HQ is aware that there might be a bug on the frontend if you are inserting a form i the richtext editor. Here are some documentation on how to write a bug report. http://our.umbraco.org/contribute/report-an-issue-or-request-a-feature
/Dennis
The silence coming from Umbraco HQ to provide some guidance here is deafening. And this is an extension users pay for.
Here is the bug-report for that problem:
http://issues.umbraco.org/issue/U4-6100
Did anyone find a fix or workaround for this? It's a showstopper for my site (my first with Umbraco 7) and will push me back to U6 if I can't find a fix for it.
Edit: Forgot to mention that I'm using 7.2.4.
Comment author was deleted
@Chris, is this also happening inside the grid? Or is it just a normal rte field you are using?
It happens in the default layout, which I believe is the grid (using the provided "Fanoe" starter kit).
Comment author was deleted
Ok thanks for the details we'll take a look
Comment author was deleted
Looks like it is a core issue http://issues.umbraco.org/issue/U4-6206 , will check with the team what the plans are
That linked issue says that "Not sure this even should be supported, the whole point of the grid is to get away from macros in the RTE". This led me to investigate more, and I now see that it's possible to add a "Macro" editor to the grid, although the process for this is pretty convoluted (Developer > Data types > Grid TextPage > click the image next to the Row Configuration that you're using > click the very pale grey pox that appears on the right > select Macro).
I would suggest that perhaps the Macro editor should be available by default, as (in my opinion) it's very hard to find at the moment.
However, my particular issue is now resolved, so thanks for pointing me in the right direction :)
Comment author was deleted
Ok will be solved in Umbraco 7.3.0 http://issues.umbraco.org/issue/U4-6206 ;
I'm on a clean install of 7.3.1 and getting the same render error above, inserting form macro in the fanoe rte. What is the best workaround currently?
is working on a reply...