xowiki::Page instproc anchor (public)
<instance of xowiki::Page> anchor arg
Defined in /var/www/openacs/packages/xowiki/tcl/xowiki-procs.tcl
Render a wiki link and release its temporary link object.
- Parameters:
- arg (required)
- Wiki link specification passed to create_link.
- Returns:
- Rendered HTML, an error fragment, or an empty string.
- Testcases:
- nested_self_references
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 $htmlXQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)