You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Florent André <fl...@4sengines.eu> on 2008/10/02 01:33:36 UTC

Re: [news module] Error message on lenya 2.0.2

Hy,

I find an "alpha" solution to this problem.

I had this code to the news module's sitemap :
 <!-- feedContent/news/{1:format}/{2:pub}/{3:area}/{4:uuid}/{5:language}
-->
      <map:match pattern="feedContent/news/*/*/*/*/*">
        <map:generate src="lenya-document:{4},pub={2},area={3},lang={5}"/>
        <map:transform
src="fallback://lenya/modules/collection/xslt/prepareInclude.xsl">
          <map:parameter name="pub" value="{2}"/>
          <map:parameter name="area" value="{3}"/>
          <map:parameter name="uuid" value="{4}"/>
          <map:parameter name="language" value="{5}"/>
          <map:parameter name="format" value="{1}"/>
        </map:transform>
        <map:transform type="include"/>
====>
        <!-- alpha solution for remove the bug -->
        <map:transform
src="fallback://lenya/modules/collection/xslt/prepareInclude.xsl">
          <map:parameter name="pub" value="{2}"/>
          <map:parameter name="area" value="{3}"/>
          <map:parameter name="uuid" value="{4}"/>
          <map:parameter name="language" value="{5}"/>
          <map:parameter name="format" value="{1}"/>
         </map:transform>
         <map:transform type="include"/>
        <!-- end of alpha solution -->
====>
        <map:transform
src="fallback://lenya/modules/news/xslt/addResourceType.xsl"/>
        <map:transform type="metaData">
          <map:parameter name="pubid" value="{2}"/>
          <map:parameter name="area" value="{3}"/>
        </map:transform>
        <map:transform
src="fallback://lenya/modules/news/xslt/includeSubNews.xsl">
          <map:parameter name="pub" value="{2}"/>
          <map:parameter name="area" value="{3}"/>
....
____________________________

This is a temporary solution... In my mind, for solve this properly the
prepareinclude and include transformation have to be done recursively while
the stream contain doc's that have an <include> or <collection>
instruction... But I don't know for now how I can do that...


Regards

On Mon, 22 Sep 2008 22:18:37 +0200, Florent André
<fl...@4sengines.eu> wrote:
> Hy list,
> 
> I have an error with the display of subnews.
> 
> If I want to create this menu :
> - parent news (eg : "all news")
> -- child news 1 (eg : "Financial news")
> --- news 1
> --- news 2
> -- child news 2 (eg : "Motor news")
> 
> If child news don't have news inside (xhtml document), a clic on the
> "parent news" create an error.
> 
> I would like to understand this error and I am ready to help you (with my
> little knowledge today) for solve this error.
> 
> Have a good day
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org