Home
The Toolkit for Online Communities
15899 Community Members, 0 members online, 2363 visitors today
Log In Register

Forum OpenACS Development: ::xowiki::Object, {{ }}, [[ ]]

OpenACS Home : Forums : OpenACS Development : ::xowiki::Object, {{ }}, [[ ]]

Icon of Envelope Request notifications

+
Posted by Michal Hanckowiak on
Hi,

is it possible to switch off processing of {{ }} and [[ ]]
in xowiki::Object ???

for example, I have the following proc content:
proc content {} {
return "

qqq {{www}} eee

"
}
and I dont want {{www}} to be interpreted
as an includelet www

.........
Michal Hanckowiak

+
Posted by Gustaf Neumann on
The xowiki::Objects behave per default the way you want (see below). On the source level the parameter render_adp can be used to control the substitution behavior.
::xowiki::PlainPage has set render_adp to 0, ::xowiki::Object inherits from this.
See: Class Hierarchy of ::xowiki::Object

Example:

Source:

Display:

+
Posted by Michal Hanckowiak on
thanks,
probably I am using too old version of xowiki (0.106.3),
best regards,
Michal Hanckowiak
+
Posted by Michal Hanckowiak on
in xowiki 0.106.3 it seems to me that
it shuld be parameter do_substitutions (not rendere_adp),
and I managed to change it by:
[my info parent] do_substitutions 1
before proc content

............
MH