[opencms-dev] Recommended way of importing external resources to VFS ?

Stephan Schrader zstephanz at gmail.com
Wed Aug 24 16:54:47 CEST 2016


Hi Thomas,

you can create a temporary project before importing the content. This way
only the imported content will be published. We use the following:

createDefaultProject "[Project Name]" "[Description]"
setCurrentProject "[Project Name]"

...

publishProjectAndWait
deleteProject "[Project Name]"

Stephan


2016-08-24 15:30 GMT+02:00 Thomas Schmidt <t.schmidt at md-network.de>:

> Hello,
>
> I have some data (plain HTML files and Pictures) which are generated by
> some reporting tools. I would like to publish those in OpenCMS and make use
> of OpenCMS permission system.
>
> What is the recommended way of importing static resources automatically
> from the server filesystem to the VFS ?
>
> I tried to do that by OpenCMS shell - this works - but apparently I can
> only publish in general by giving command publishProjectAndWait(), which
> will publish apparently automatically other things from other users (seems
> so that in past there was something like publishResource(String) command
> which is not available anymore).
> I tried as well to configure a Synchronisation with a folder - which was
> not working (and would be less preferred).
>
>
> Many Thanks
> Kind Regards
> Thomas Schmidt
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160824/dbf9ec12/attachment.htm>


More information about the opencms-dev mailing list