I'm sure I am missing something key in the sitemap but I'm trying to
find a way to wildcard match to any number of subdirectories. It
looks like the way to accomplish this is to use a matching like
"**/*.html" or something similar. Problem is.. its not working as I
expected.
Here's my example (without subdirectories):
<map:pipeline internal-only="true">
<map:match pattern="blocks/*">
<map:generate type="jx" src="public/blocks/{1}.jx"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline type="noncaching">
<map:match pattern="*.html">
<map:call function="showPage">
<map:parameter name="page" value="{1}"/>
</map:call>
</map:match>
<map:match pattern="content/*.html">
<map:generate type="jx" src="public/layouts/{1}.jx"/>
<map:transform type="cinclude"/>
<map:transform src="themes/{global:theme}/main.xsl"/>
<map:serialize type="html"/>
</map:match>
...etc...
Long story short.. the user requests "/index.html".. flow then does a
cocoon.sendPage("content/index.html", ...). Then the JXTemplate
"public/layouts/index.jx" gets called.. which in turn does some
content aggregation of the pipeline "blocks/about.jx" which looks for
the file "public/blocks/about.jx."
Hope that doesnt sound too confusuing. Anyways.. I want to be able to
match for "/whatever/dir/index.html".. which in turn looks in
"content/whatever/dir/index.html", which finds the file
"public/layouts/whatever/dir/index.jx".. etc.. same for the blocks.
I tried this with **/*.html and **/*.jx, etc... but this got
unpredictable results. Most notably.. adding a match for **/*.html
along with a match for *.html (since apparently /index.html doesnt
match **/*.html) results in Cocoon just sending a blank page to the
browser.
Anyone tried anything like this?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]