SpecialReferencesSource

Examples of Special References

value related to source
* {$FullName}
* {$Group}
* {$Name}
* {$Groupspaced}
* {$Namespaced}
srpt:source
* {$:srpt}

srpt:source

  • source

(:include SpecialReferencesTarget#include#includeend:)

value related to target
* {*$FullName}
* {*$Group}
* {*$Name}
* {*$Groupspaced}
* {*$Namespaced}
srpt:target
* {Test.SpecialReferencesTarget$:srpt}

srpt:target

  • target

source value
-< [[{$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} :)
Put in MyPage?:
(:if ( !equal "{$$includedby}" "{$FullName}" ) and ( !equal "{$$includedby}" "" ) :)
This text was included by another page
(:ifend:)
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.04 00.04 MarkupToHTML end
 5: 00.04 00.04 MarkupToHTML begin
 6: 00.04 00.04 MarkupToHTML begin
 7: 00.04 00.04 MarkupToHTML end
 8: 00.04 00.04 MarkupToHTML end
 9: 00.04 00.04 MarkupToHTML begin
10: 00.05 00.04 MarkupToHTML end
11: 00.06 00.05 MarkupToHTML end
12: 00.06 00.05 MarkupToHTML begin
13: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
14: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
15: 00.08 00.07 MarkupToHTML end
16: 00.08 00.07 MarkupToHTML begin
17: 00.08 00.07 MarkupToHTML end
18: 00.08 00.08 now
Peak memory: 3,149,280 bytes