[opencms-dev] Help Static Export - opencms-importexport.xml

Marc Johnen opencms at johnen.biz
Fri Feb 20 13:31:23 CET 2009


Hi Andrea,

are you familiar with regular expressions 
http://www.regular-expressions.info/quickstart.html?
There is an interesting Tutorial on the export mechanism:
http://www.opencms-forum.de/opencms-forum/viewthread?thread=1279
It's not one of my strengths either, but I think it should look something
like:
<regex>/sites/mysite/articles/onlyFileToExport.html</regex>

The following doesn't seem to make any sense to me:
 <uri>/sites/mysite/map.xml</uri>

Why are you trying to export one file only anyway?
Greetings
Marc


Andrea Puddu-2 wrote:
> 
> Hi everybody,
> has anyone tried an export rule where the export action involves just one
> file? 
> Have a look at the following (from opencms-importexport.xml):
> 
> (...)
> <export-rule>
>         <name>My Rule</name>
>         <description>
>                 exports a single file (map.xml) when a new article is
> published
>         </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 not possible to export a single file, so you
> should 
> have something like: 
> <uri>/sites/mysite/</uri>
> 
> But in this case, every resources inside /sites/mysite/ will be exported 
> as well, unfortunately.
> 
> I know that I can make a specific folder like /sites/mysite/specific/ 
> and put the "map.xml" inside... (so that only map.xml will be exported)
> but it would be nice if I could export a single file without using 
> this work-around tecnique.
> 
> Has anyone experienced the same? Any idea about it? 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Help-Static-Export---opencms-importexport.xml-tp21999653p22119722.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list