Until such an option as Allen describes, you should be able to specify
the "no op" decorator (if it still exists, under
/WEB-INF/classes/themes) at the top of your page with:

#set( $decorator = "/themes/noop_decorator.vm" )

If you cannot point to the "default" decorators, create your own
'_noop_decorator' page with only the following content:

$decorator_body

and use
#set( $decorator = "_noop_decorator" )

Then you won't have any extraneous text inserted into your custom page.

Lance

On 5/23/06, Allen Gilliland <[EMAIL PROTECTED]> wrote:
I believe I have said some time ago that I think the way the _decorator
template works is a bit strange.  You example with an xml file is
another case of how the current setup is not ideal.

I think a better approach would be to add a property of a template
called applyDecorator and give users a chance to toggle that on/off
manually on their templates.  This way a user can simply apply the
decorator only to the templates they want to, rather than just have it
happen automatically if a _decorator template exists.

-- Allen


Miguel A Paraz wrote:
> On 5/23/06, James M Snell <[EMAIL PROTECTED]> wrote:
>> I'm not sure what you mean by adding a decorator.
>
> If PageServlet finds a _decorator.vm, it displays this and wraps the
> page content inside.
>
> So, we need a way to disable this for XML "pages."

Reply via email to