On Wed, Mar 12, 2008 at 10:36 AM, Gellien, Joerg
<[EMAIL PROTECTED]> wrote:
> Hi folks,
>
>  Just another thought on the topic: displaying external directory structures 
> with metadata under XWiki.
>  The major goal I have to achieve is to provide readonly access to a 
> directory structure with associated documents for download.
>
>  I have read in the xwiki docs on optimization that it is possible to disable 
> versioning of documents for performance gain.
>  - Is it possible to disable versioning for specific spaces?

This option disable the whole versioning service at the higher level.

The only thing you can do at a finer grain is reseting a document
archive (deleting all the revisions except the last one).
It's not available in the public velocity API but (thanks to xwiki's
hidden APIs ;) ) any user with the programming rights can do this in a
wiki page :

------------------8<----------------------------------------------
$doc.document.resetArchive($context.context)
------------------8<----------------------------------------------

>  This would allow me to generate hirachical pages with the appropreate 
> metadata (one page -> one directory, one space -> one project to display) 
> without creating to much junk inside of xwiki (only latest information on 
> structure is valid).

I think you could use the scheduler application [1] with a groovy job
to sync you wiki with you repo, at night for example.
This groovy job could loop over you synergy projects set all the
desired datas in wiki pages and reset archives of all those documents.

[1] : http://code.xwiki.org/xwiki/bin/view/Applications/SchedulerApplication
bundled with XE since 1.2, see the Scheduler space.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to