[opencms-dev] Static Export - regex - How to Export a single file
Andrea Puddu
docpuddu at tiscali.it
Tue Feb 3 13:06:30 CET 2009
For the sake of clarity the code snipet attached below is from the
config file
opencms-importexport.xml
where I'm using
<staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler>
/A
Andrea Puddu ha scritto:
> Hi everybody,
> has anyone tried a rule where the export action involves just a single
> file? Please have a look at the following code snipet:
>
> <export-rule>
> <name>My Rule</name>
> <description>
> exports a single file
> </description>
> <modified-resources>
> <regex>/sites/mysite/articles/.*</regex>
> </modified-resources>
> <export-resources>
> <uri>/sites/mysite/map.xml</uri>
> </export-resources>
> </export-rule>
>
> In my experience it seems possible to export folders only, so you should
> have <uri>/sites/mysite/</uri>
> But unfortunately every resources inside /sites/mysite/ will be exported
> at the same time.
> I know that I can make a specific folder like /sites/mysite/specific/
> and put the "map.xml" inside...
> but it would be nice to be able to export a single file without using
> this work-around.
>
> Any idea? Thanks!
> Andrea
>
>
> ---------------------------
> Andrea Puddu
> docpuddu at tiscali dot it
> http://www.linkedin.com/in/andreapuddu
> -------------------------------------------
>
> _______________________________________________
> 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/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list