[pmwiki-users] Testing for side bar

Randy Brown alongkiss at aprivatespot.com
Sat Sep 24 00:25:13 CDT 2011


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110924/4ab5b4d3/attachment.html>


More information about the pmwiki-users mailing list