> It appears to only support one uriRewrite per site - not sure if this is
> intentional or not, but at least one Showcase site seems to use more than
> one...
>
>
> Here's what I've been testing with:
>
> <site unresolvedLinkColor="#ff0000">
> <name>The Straight Dope</name>
> <uri maxDepth="1"
> restrict="domain">http://www.straightdope.com/</uri>
> <uriRewrite pattern=".*" value="${str:replace(uri, 'straightdope/',
> '')}"/>
> <uriRewrite pattern=".*" value="${str:replace(uri, '../', '')}"/>
> <images>
> <embedded bpp="8" maxHeight="300" maxWidth="300"/>
> </images>
> <schedule>
> <daily hour="0" minute="0"/>
> </schedule>
> </site>
>
> Only the first-defined uriRewrite takes effect. I can reverse the definition
> order and the other uriRewrite works fine, so it's probably not a problem
> with my regexp.


Both regular expressions match every URL. For URI rewriting JPluck only applies the first matching rule in the JXL(it does not chain rewriting rules).


Regards -Laurens _______________________________________________ plucker-list mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to