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

Collapse
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

Collapse
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:

Collapse
Posted by Michal Hanckowiak on
thanks,
probably I am using too old version of xowiki (0.106.3),
best regards,
Michal Hanckowiak
Collapse
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