xowiki::Page instproc anchor
<instance of xowiki::Page> anchor
Defined in
- Testcases:
-
nested_self_references, xowiki
Source code:
ad_try {
set l [:create_link $arg]
} on error {errorMsg} {
return "<div class='errorMsg'>Error during processing of anchor ${arg}:<blockquote>$errorMsg</blockquote></div>"
}
if {$l eq ""} {
return ""
}
if {[info exists :__RESOLVE_LOCAL] && [$l exists is_self_link] && [$l is_self_link]} {
:set_resolve_context -package_id [:physical_package_id] -parent_id [:physical_parent_id]
$l parent_id [:anchor_parent_id]
set html [$l render]
:reset_resolve_context
} else {
set html [$l render]
}
if {[info commands $l] ne ""} {
$l destroy
} else {
ns_log notice "link object already destroyed. This might be due to a recursive inclusion"
}
return $html
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]