forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carles Canellas <ccanell...@yahoo.es>
Subject [bug] Resource parameter in sitemap.
Date Fri, 25 Oct 2002 14:25:42 GMT
Well, I've found another bug, that one in the sitemap.

   <map:match pattern="*.html">
    <map:aggregate element="site">
     <map:part src="cocoon:/book-{1}.xml"/>
     <map:part src="cocoon:/tab-{1}.xml"/>
     <map:part src="cocoon:/body-{1}.xml"
label="content"/>
    </map:aggregate>
    <map:call resource="skinit">
      <map:parameter name="type" value="site2xhtml"/>
      <map:parameter name="dir" value=""/>
      <map:parameter name="resource" value="{0}"/>
    </map:call>
   </map:match>

   <map:match pattern="**/*.html">
    <map:aggregate element="site">
     <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
     <map:part src="cocoon:/{1}/tab-{1}/{2}.xml"/>
     <map:part src="cocoon:/body-{1}/{2}.xml"
label="content"/>
    </map:aggregate>
     <map:call resource="skinit">
      <map:parameter name="type" value="site2xhtml"/>
      <map:parameter name="dir" value="{1}/"/>
     </map:call>
   </map:match>

As you can see, in the match of *.html we skin with
parameter resource, but when we do the match
**/*.html, we skin without that parameter. That's a
bug, I think (in my project skin, we need the footer
to appear in each index.html, not only in the main
one. It's up to the skin decide what to do with that
resource)

Hope it helps,

=====
Carles Canellas.
VicerTec S.L.

_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

Mime
View raw message