> about that the simplest thing to do is to put all your development pages in
> a /view/Dev/ space, and then use #includeTopic("Dev.ScriptPage") to display
> them in usual content-only wiki pages while preserving the ability to use
> the WYSIWYG editor for basic users...
>
> Once you do this the WYSIWYG editor starts becoming useful again... be sure
> to use the latest XWiki version too since it usually has had more bugs
> corrected :-)

That's a nice trick used a lot in TWiki, plugins are based on this.
Related to this there's a nice feature in TWiki I'd like to see in
XWiki: section import. You can declare a section in a page and then
only import that section of a page in another one. In this case it's
really useful because you don't have to use multiple pages for each
five lines of code to insert. In your plugin code page you create a
page section for each plugin function. Then you can import those
sections in your user pages. All code in one tidy place.

In XWiki that could bedone with something like this:

The declaration part:

Some text in a page

{section: MyFirstPageSection}
some text in the section
{section: MyFirstPageSection}

Page continues...

The include part:
#includeTopic("Dev.ScriptPage|MyFirstPageSection")

William
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to