Removing Comments Form area completely when comments are closed
Hi
Is it possible to remove the comments form area completely when comments are closed for a post rather than still having the Comments counter, Comments Form header and comments are closed text still appear there?
Removing Comments Form area completely when comments are closed
Hi
Is it possible to remove the comments form area completely when comments are closed for a post rather than still having the Comments counter, Comments Form header and comments are closed text still appear there?
Bazza
in uCommendtsyWidgetListComments.cshtml
you could.... add :
look for @RenderForMain(landing, comments)
if ((bool)TempData["closed"] == false){
@RenderForMain(landing, comments)
}
Thanks, I'll give it a try.
Hi
I couldnt find @RenderForMain(landing, comments) in uCommendtsyWidgetListComments.cshtml but i found it in uCommendtsyListComments.cshtml.
I've tried it and it gives an error stating that 'TempData' does not exist in the current context.
Is there any thing else you can suggest or am I doing something wrong?
Thanks.
is working on a reply...