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.02 00.01 config end
 2: 00.24 00.20 MarkupToHTML begin
 3: 00.24 00.20 MarkupToHTML begin
 4: 00.25 00.21 MarkupToHTML end
 5: 00.25 00.21 MarkupToHTML begin
 6: 00.25 00.21 MarkupToHTML begin
 7: 00.25 00.22 MarkupToHTML end
 8: 00.25 00.22 MarkupToHTML end
 9: 00.25 00.22 MarkupToHTML begin
10: 00.25 00.22 MarkupToHTML end
11: 00.26 00.23 MarkupToHTML end
12: 00.27 00.23 MarkupToHTML begin
13: 00.27 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
14: 00.28 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
15: 00.28 00.25 MarkupToHTML end
16: 00.29 00.25 MarkupToHTML begin
17: 00.29 00.25 MarkupToHTML end
18: 00.29 00.25 now
Peak memory: 3,778,936 bytes