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
Hi,
I want to show asp adrotator control only in few pages. So i placed a checkbox, the page which has the property checked should show adrotator and the other pages should not show the adrotator.
@if(Model.showadrotator != false){<umbraco:Macro Alias="CPCD-AdRotator" runat="server"></umbraco:Macro>}
The above code throws me an error..
Can anyone suggest me few ideas to implement?
can we implement the same using jquery or something???
Thanks
Sushma
Move your login for showadrotator inside the CPCD-AdRotator macro...
if it's razor macro then easy, same code
if xslt, then......
if user control then
CurrentNode = umbraco.NodeFactory.Node.GetCurrent();
if (CurrentNode.GetProperty("showadrotator").Value == "1")
{ ....}
Thankyou.. it worked..
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Show asp adrotator in specific pages
Hi,
I want to show asp adrotator control only in few pages. So i placed a checkbox, the page which has the property checked should show adrotator and the other pages should not show the adrotator.
@if(Model.showadrotator != false)
{
<umbraco:Macro Alias="CPCD-AdRotator" runat="server"></umbraco:Macro>
}
The above code throws me an error..
Can anyone suggest me few ideas to implement?
can we implement the same using jquery or something???
Thanks
Sushma
Move your login for showadrotator inside the CPCD-AdRotator macro...
if it's razor macro then easy, same code
if xslt, then......
if user control then
CurrentNode = umbraco.NodeFactory.Node.GetCurrent();
if (CurrentNode.GetProperty("showadrotator").Value == "1")
{ ....}
Thankyou.. it worked..
is working on a reply...