I've installed the package, added the scripts, included the macros on the template. But when I go to test it on my site, nothing happens.
It doesn't display the comment, it doesn't display the "Your comment is being submitted, please wait" or the "Your comment has been posted, thank you very much" text. None of the comments are being saved in the "Content".
Similar to how Daniel said in the post above. I really depends on how your templates are setup and where you are calling the macro's in the template or master template.
So your server form (<form id="BoostMasterForm" runat="server">) wraps around placeholder for your sub template, which means all the items in your sub template will be encapsulated in the server form.
In your sub page you have a non-server form (it doe not have runat="server" attribute), so what you need to do is just removed <form method="post" action=""> from the sub page, and see if that works?
Nothing is happening
I've installed the package, added the scripts, included the macros on the template. But when I go to test it on my site, nothing happens.
It doesn't display the comment, it doesn't display the "Your comment is being submitted, please wait" or the "Your comment has been posted, thank you very much" text. None of the comments are being saved in the "Content".
Any suggestions?
Hi JV,
Had the same problem, you have to put the macro's in a form.
So in your template it would look similar to this:
<form id="Comments" runat="server">
<h2>Write a comment:</h2>
<umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>
<umbraco:Macro Alias="UCommentForm" runat="server"></umbraco:Macro>
</form>
Unfortunately my template already has a form tag on it:
Which of course causes the the page to fail.
Is there any way I can get the two forms to work together?
There is no way of having two server forms on a page. It's a part of the .NET web forms framework.
You will need to rearrange your templates to just have one server form and encapsulate both macro's within that server form.
Cheers,
Neil
Hi Neil
How would I encapsulate both macro's within the BoostMasterForm?
Similar to how Daniel said in the post above.
I really depends on how your templates are setup and where you are calling the macro's in the template or master template.
Cheers,
Neil
Ok, I've got my Master template set out as such:
And my sub template that I'm inserting the macro's into set up as such:
Cool, thats exactly what i needed :)
So your server form (<form id="BoostMasterForm" runat="server">) wraps around placeholder for your sub template, which means all the items in your sub template will be encapsulated in the server form.
In your sub page you have a non-server form (it doe not have runat="server" attribute), so what you need to do is just removed <form method="post" action=""> from the sub page, and see if that works?
Cheers,
Neil
Thanks Neil,
That didn't work. I'm still not getting any comments displaying on the page or saving to the Content area.
It could be something to do with the UComments configuration. I have never used UComment, so I don't know much about the settings.
Just to double check you did remove the </form> tag from the sub page as well?
Cheers,
Neil
Yeah I removed the </form> tag.
Got it working now! Another script was knocking it out.
Cheers,
JV
Hey JV,
would You be so nice and share the solution ? Am encountering just the same problem. What did U do to solve it ? Maybe U still remember: ) ?
thx !
Tom
Do do not need another form, ust add RegisterScripts="1" as below:
<!-<!--comments-->
<umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>
<h3>Leave Comment</h3>
<umbraco:Macro RegisterScripts="1" Alias="UCommentForm" runat="server"></umbraco:Macro>
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.