Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Any way to accomplish this? User will set true/false to a field value "displayContactForm". Easy (and dirty) way is to use css, but not a good alternative, although I'll go with that if there's no other options.
Comment author was deleted
Sure nikolas,
You could simply do this in your template.
Check this example (it's in blog4umbraco, it hides the comment form if the field value "close comments" is true)
http://blog4umbraco.codeplex.com/SourceControl/changeset/view/40819#685144
These parts are important:
<script runat="server"> bool closeComments = false; void Page_Load(object sender, System.EventArgs ea) { try{ if(umbraco.presentation.nodeFactory.Node.GetCurrent().GetProperty("closeComments").Value == "1") closeComments = true; } catch(System.NullReferenceException){} }</script>
<% if (!closeComments) { %>
<% } %>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Add Contour form based on field value
Any way to accomplish this? User will set true/false to a field value "displayContactForm". Easy (and dirty) way is to use css, but not a good alternative, although I'll go with that if there's no other options.
Comment author was deleted
Sure nikolas,
You could simply do this in your template.
Check this example (it's in blog4umbraco, it hides the comment form if the field value "close comments" is true)
http://blog4umbraco.codeplex.com/SourceControl/changeset/view/40819#685144
These parts are important:
is working on a reply...