I haven't tried this, but I'd think it would work...
Put in sidebar:
(:include MyPage includedby={$FullName} :)
Put in MyPage:
(:if ( !equal "{$$includedby}" "{$FullName}" ) and ( !equal "{$$includedby}" ""
) :)
This text was included by another page
(:ifend:)
Randy
On Sep 23, 2011, at 11:43 PM, Simon wrote:
> Is there any way I can detect from conditional markup that the included text
> is not in the body of a page (eg in the side bar or footer)?
>
> This is because Special references don't work the way I assumed in the case
> where an include in the side bar is from the current page body.
> Because {$Name} and {*$Name} are the same in the sidebar the the unclude is
> from the current page body page.
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users