Well atleast it does'nt crash in Internet Explorer. I can add the macro and publish it, but when I view the page in my browser (Chrome and IE) I just see two buttons:
Aha! I thought I broke something in my site.. Good to know!
Tim: I asked you at umbUKFest to be able to add forms to a template using its alias instead of the guid, this is why I needed that (so I could deploy the template across to my live environment without changing anything). Of course, this is still a valid feature request, you might not want your editors to be able to mess with the inserting forms.
Fel att lägga makro Infoga form från Umbraco Contour Kontroller samlingen kan inte ändras eftersom kontrollen innehåller kod block (dvs <% ...%>). på System.Web.UI.ControlCollection.Add (Control barn) på Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi () i D: \ TeamCity \ buildAgent \ work \ e4473b9ec9597356 \ Umbraco.Forms.UI \ Usercontrols \ RenderForm.ascx.cs: line 314 på Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit (EventArgs e) i D: \ TeamCity \ buildAgent \ work \ e4473b9ec9597356 \ Umbraco.Forms.UI \ Usercontrols \ RenderForm.ascx.cs: line 265 på System.Web.UI.Control.InitRecursive (Control namingContainer) på System.Web.UI.Control.AddedControl (Control, Int32 index) på System.Web.UI.ControlCollection.Add (Control barn) på umbraco.presentation.templateControls.Macro.CreateChildControls ()
My CSS is included dynamically with <% ... %> in the main masterpage. I had to put that segment in a <asp:placeholder> so it would'nt disturb the rest of the page.
Why can I not add a form to a contentpage?
I can add my form to a template, but not a contentpage. Instead it crashes.
I've recorded what happens:
http://screencast.com/t/SJctbfp0A2
Have you tried a different browser? I know that Chrome has issues with inserting macros into the Rich Text Editor
Rich
Well atleast it does'nt crash in Internet Explorer. I can add the macro and publish it, but when I view the page in my browser (Chrome and IE) I just see two buttons:
"Previous" and "Next"
Hey Viktor,
It's currently an umbraco core bug, inserting a macro in the rte using chrome will fail...
Aha! I thought I broke something in my site.. Good to know!
Tim: I asked you at umbUKFest to be able to add forms to a template using its alias instead of the guid, this is why I needed that (so I could deploy the template across to my live environment without changing anything). Of course, this is still a valid feature request, you might not want your editors to be able to mess with the inserting forms.
Tim, I can live with that until it gets fixed. But what about the other issue I ran into while I was using IE instead?
@Viktor,
Make sure the contour macro is inside a form with runat="server" attribute
Thanks!
Now it no longer works even if i've added <form runat="server"> ... </form>.
Not even if I insert the contour form directly into the template
Do you get any errors when running the page with the form on it? we need more information to be able to help you out
If there is no errors please add ?umbDebugShowTrace=true to the url to get the stack trace and look in there for errors
/Per
From the stacktrace:
Fel att lägga makro Infoga form från Umbraco Contour
Kontroller samlingen kan inte ändras eftersom kontrollen innehåller kod block (dvs <% ...%>).
på System.Web.UI.ControlCollection.Add (Control barn)
på Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi () i D: \ TeamCity \ buildAgent \ work \ e4473b9ec9597356 \ Umbraco.Forms.UI \ Usercontrols \ RenderForm.ascx.cs: line 314
på Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit (EventArgs e) i D: \ TeamCity \ buildAgent \ work \ e4473b9ec9597356 \ Umbraco.Forms.UI \ Usercontrols \ RenderForm.ascx.cs: line 265
på System.Web.UI.Control.InitRecursive (Control namingContainer)
på System.Web.UI.Control.AddedControl (Control, Int32 index)
på System.Web.UI.ControlCollection.Add (Control barn)
på umbraco.presentation.templateControls.Macro.CreateChildControls ()
I found the cause of the error!
My CSS is included dynamically with <% ... %> in the main masterpage. I had to put that segment in a <asp:placeholder> so it would'nt disturb the rest of the page.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.