lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sac sha <sacsh...@gmail.com>
Subject Re: Creating Partial Sitemap
Date Thu, 09 Apr 2009 15:23:11 GMT
Hi Richard

Thanks for the reply.

Actually I have to check session in the pipeline for the tabs. But when I
try to apply an action to the pipeline it overcomes the value of parameters
which are already existing in the pipeline and the whole page got distorted.

Like :

<!-- pattern:
{1:nav-element}/{2:pub-id}/{3:area}/{4:default-language}/{5:language}/{6:path}.xml
-->
<map:match pattern="*/*/*/*/*/**.xml">
<map:act type="myaction">
<checking session parameter>
<if true>
        <map:generate src="cocoon:/navtree/{2}/{3}/{4}/{5}/{6}.xml"/>
        <map:transform
src="fallback://lenya/modules/sitetree/xslt/navigation/customtabs.xsl">
          <map:parameter name="area" value="{3}"/>
          <map:parameter name="root" value="/{2}/{3}/"/>
          <map:parameter name="chosenlanguage" value="{5}"/>
          <map:parameter name="defaultlanguage" value="{4}"/>
        </map:transform>
        <map:serialize type="xml"/>
</if true>
<otherwise>
   <map:generate src="cocoon:/navtree/{2}/{3}/{4}/{5}/{6}.xml"/>
        <map:transform
src="fallback://lenya/modules/sitetree/xslt/navigation/tabs.xsl">
          <map:parameter name="area" value="{3}"/>
          <map:parameter name="root" value="/{2}/{3}/"/>
          <map:parameter name="chosenlanguage" value="{5}"/>
          <map:parameter name="defaultlanguage" value="{4}"/>
        </map:transform>
        <map:serialize type="xml"/>
</otherwise>
</map:act>
      </map:match>

But this throws error because we can use {1},{2},{3}......inside myaction.

Sorry if it sound something foolish.

Regards
Sac

On Thu, Apr 9, 2009 at 8:29 PM, Richard Frovarp <rfrovarp@apache.org> wrote:

> sac sha wrote:
>
>> Hi
>>
>> Description:
>> Lenya : 2.0.2
>>
>> I want to create a login section in my project. I want to show some
>> tabs(not all) after user logins. Can anybody let me know if anyone has tried
>> implementing this?
>> I am trying to understand child publication and may be it can help me out
>> of this.
>>
>> Please let me know if anybody has any idea.
>>
>> Regards
>> Sac
>>
>>
> You should be able to do this by modifying the XSLT portion that actually
> displays the tabs.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>

Mime
View raw message