Test /
SpecialReferencesSource
Examples of Special References
* {$FullName} * {$Group} * {$Name} * {$Groupspaced} * {$Namespaced} srpt:source * {$:srpt} |
srpt:source
|
(:include SpecialReferencesTarget#include#includeend:) | ||
|
-< [[{$Name}]] -< [[{*$Name}]] -< "{$:srpt}" -< "{*$:srpt}" |
"source"
"source"
|
See also Special References Target
from mailing list
Is there any way using conditional markup to detect 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 SpecialReferencesSource and SpecialReferencesSource are the same in the sidebar the the include is from the current page body page.
Randy suggested
I haven't tried this, but I'd think it would work...
Put in sidebar:
(:include MyPage includedby={$FullName} :)
(:if ( !equal "{$$includedby}" "{$FullName}" ) and ( !equal "{$$includedby}" "" ) :) This text was included by another page (:ifend:)