[opencms-dev] Static Export - regex - How to Export a single file
Andrea Puddu
docpuddu at tiscali.it
Mon Feb 2 10:27:33 CET 2009
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
-------------------------------------------
More information about the opencms-dev
mailing list