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
<div id="SearchForm1" class="unit size1of3" style="position: relative;"> <div id="SearchFormBox"> <img src="/media/14608/ribbon-startnow.png" style="position: absolute;left:208px;top:-4px;z-index:300;width:87px;"> <umbraco:Macro PropDefaultState='[$selectedState]' Alias="CoreSiteSearchBox" runat="server"></umbraco:Macro> </div> </div>I have this in one of my templates on the home page of the template. I need to somehow make this not show when another page is hidden.
Is there a way to do this?
Hi Corey
What version of Umbraco are you using?
I think you should somehow be able to use either an XPATH or lookup a page based on an ID an figure out if it's marked as hidden or not.
/Jan
I am using 4.7 and I am not familiar with XPATH could you help me out? Thanks,
Ok, and are you using XSLT to render your pages or are you using razor?
XPATH is a query language for XML to find specific XML nodes.
Looking forward to hearing from you.
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.
Continue discussion
Hiding Macro if certain template page is hidden
<div id="SearchForm1" class="unit size1of3" style="position: relative;">
<div id="SearchFormBox">
<img src="/media/14608/ribbon-startnow.png" style="position: absolute;left:208px;top:-4px;z-index:300;width:87px;">
<umbraco:Macro PropDefaultState='[$selectedState]' Alias="CoreSiteSearchBox" runat="server"></umbraco:Macro>
</div>
</div>
I have this in one of my templates on the home page of the template. I need to somehow make this not show when another page is hidden.
Is there a way to do this?
Hi Corey
What version of Umbraco are you using?
I think you should somehow be able to use either an XPATH or lookup a page based on an ID an figure out if it's marked as hidden or not.
/Jan
I am using 4.7
and I am not familiar with XPATH could you help me out?
Thanks,
Hi Corey
Ok, and are you using XSLT to render your pages or are you using razor?
XPATH is a query language for XML to find specific XML nodes.
Looking forward to hearing from you.
/Jan
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.