On 12/28/05, Yura Taras <[EMAIL PROTECTED]> wrote:
> I've added pipeline wich match some special path, (actually
> database/listing/*.html). I need this, to handle urls like
> database/listing/5.html, where 5 is a number of page. I've created page
> database/listing/page.html using lenya, this page will be newer viewed,
> but i need it to generate menu etc.
> Matcher look's like this:
> <map:match pattern="**/database/listing*/*.html">
>         <map:aggregate element="cmsbody">
>                 <map:part src="cocoon://navigation/{page-envelope:publication-
> id}/{page-envelope:area}/breadcrumb/database/listing/pages.html.xml"/>
>                 <map:part src="cocoon://navigation/{page-envelope:publication-
> id}/{page-envelope:area}/tabs/database/listing/pages.html.xml"/>
>                 <map:part src="cocoon://navigation/{page-envelope:publication-
> id}/{page-envelope:area}/menu/database/listing/pages.html.xml"/>
>                 <map:part src="cocoon://navigation/{page-envelope:publication-
> id}/{page-envelope:area}/search/database/listing/pages.html.xml"/>
>                 <!-- This parts return lenya navigation elements for page
> database/listing/page.html, and, because i've maid page.html invisible
> in navigation, it looks like it is a menu for database/listing/4.html --
> >
>                 <map:part src="cocoon:/database-listing/{3}.xml"/>
>                 <!-- It's my xsp, that generates a set of database records -->
>         </map:aggregate>
>         <!-- Transformation and serialization -->
> </map:match>
>
> I don't think, it's good practice, but I haven't found any better
> solution.
> But now i have to add multilingual support. What uri i should use to
> generate russian version of menu for database/listing/pages.html?
> cocoon://navigation/{page-envelope:publication-id}/{page-
> envelope:area}/breadcrumb/database/listing/pages_ru.html.xml doesn't
> work :(

If I understand correctly, you need to add to add the language to all
the parts so the navigation elements are generated for the correct
language:
<map:part 
src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/menu/database/listing/pages_{page-envelope:document-language}.html.xml"/>

Then
database/listing/5_ru.html
should include the menu for the Russian documents.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to