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
I am the true/false property in umbraco i'm trying to set a placeholder to be visible or hidden depending on what I set it in the backoffice
Currently i tried to use
<asp:PlaceHolder runat="server" Visible="<umbraco:item field="hotVisible1" runat="server"/>" >
but keep getting a parser Error if any one knows how to get the effect i'm after I'm all ears, Thanks in advance.
Hi Zack,
Try to use c# code for that:
placeHolderId.Visible = CurrentPage.hotVisible1;
Thanks, Alex
Thanks but when using Webforms CurrentPage does not exist unless i'm missing a reference. or inheritance.
Zakc, try to use Node:
Node src = Node.GetCurrent();
That worked
this.lihot1.Visible = Convert.ToBoolean(Convert.ToInt32(umbraco.NodeFactory.Node.GetCurrent().GetProperty("hotVisible1").Value));
thanks for the help
Great ) You are welcome!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco true/false with master page template
I am the true/false property in umbraco i'm trying to set a placeholder to be visible or hidden depending on what I set it in the backoffice
Currently i tried to use
but keep getting a parser Error if any one knows how to get the effect i'm after I'm all ears, Thanks in advance.
Hi Zack,
Try to use c# code for that:
Thanks, Alex
Thanks but when using Webforms CurrentPage does not exist unless i'm missing a reference. or inheritance.
Zakc, try to use Node:
That worked
thanks for the help
Great ) You are welcome!
is working on a reply...