Forum OpenACS Development: Re: Rendering content created in xowiki

Collapse
Posted by Gustaf Neumann on
get an update of xowiki from cvs head, and use

<include src="/packages/xowiki/lib/view" url="/xowiki/" template_file="view-plain">

at the place where you are including the xowiki pages. This will get rid of the command bar.

concerning the styles: i am not sure this is desired. some pages will look strange when they are included without the appropriate css definitions (e.g. the default index page). However, i have just added a flag for the include to do so:

<include src="/packages/xowiki/lib/view" url="/xowiki/" template_file="view-plain" css="none">

does this help?
-gustaf neumann

Collapse
Posted by Carl Robert Blesius on
Hi Gustaf,

Thank you, this helps, but when using two different includes on the same request returns the content of whatever "include" came first in both cases. If we use the alternative option (using an item_id instead of a URL) it works fine, although it ignores the template part. Is this a problem with ::xowiki::Package instantiate?

Carl

P.S. Thanks for adding the css=none option. We need it to remain flexible on display. Will test that later.

Collapse
Posted by Gustaf Neumann on
got it. there was some unwanted caching if some other package did multiple includes of different pages from the same xowiki package. It is committed as usual to cvs HEAD

-gustaf