long story short. I'm trying to develop a small site using cocoon. I have the
following problem.
My site has some categories. Some categories have subcategories. And here is
the part in sitemap where I have my problem
<map:match pattern="*/*/*/*/">
<map:aggregate element="root" label="source">
<map:part element="menu" src="cocoon:/{1}/menu.xml"/>
<map:part element="menu2" src="cocoon:/{1}/{2}/menu.xml"/>
<map:part element="menu3" src="cocoon:/{1}/{2}/{3}/menu.xml"/>
<map:part element="document" src="cocoon:/{1}/{2}/{3}/{4}/index.xml"/>
<map:part element="menu4" src="cocoon:/{1}/{2}/{3}/{4}/menu.xml"/>
so here's the catch.
mysite.com/A/B/C/D has some subcategories(D/x)
mysite.com/A/B/C/E doesn't have subcategories
So when I load the /D url, everything works fine because the element menu4
exists.(there is a menu.xml in A/B/C/D folder)
when I load the /E url, I get http resource not found error because there is no
menu4 element(there is no menu.xml in A/B/C/E folder.
So how can I make this "optional"?
How can I tell cocoon "hey, if you don't find the menu4 element, it's no
problem, just go on?"
10x in advance
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]