I return to your question about the logic I'm trying to do.
The way the submenu is displayed is not the way you think, the logic of
menu.xsl is not used in live (only in authoring in fact). The submenu is
hard coded in a custom xsl. I hope you see now what I mean.
for my issue, while seeing in the file menu.xsl and sitetree2nav.xsl, I have
understood that a variable $url is used.
I also display directly this variable in my custom xsl and this is good I
have no error and it is set to the "current" path.
jreeman wrote:
>
> Ok I am not at office to check if that file is present but I think you are
> right, I certainly have to see more in depth in the direction you are
> talking about.
>
> In addition, is there a documentation explaining that we are talking about
> ?
>
>
> Richard Frovarp wrote:
>>
>> The entire site tree is handled by menu.xsl, so submenu items are
>> handled there as well. I am not entirely clear on the logic you are
>> trying to do.
>>
>> jreeman wrote:
>>> I'm talking about the live and actually my issue concerns submenu items
>>> not
>>> menu items since I am not in the menu.xsl file, but I will see how it
>>> works
>>> in this file.
>>>
>>>
>>> Richard Frovarp wrote:
>>>
>>>> jreeman wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I would like the current item menu to be displayed in bold.
>>>>>
>>>>> For example if the user see the submenu 2, I d like I see something
>>>>> like
>>>>> that :
>>>>>
>>>>> menuOne menuTwo menuThree
>>>>>
>>>>> but the xsl sheet transforming in HTML the menu is shared for the
>>>>> different
>>>>> page of the site.
>>>>>
>>>>> I am a not lenya expert and the simple way I have found out is to put
>>>>> a
>>>>> parameter (why not the URI for example) in the doctypes.xml :
>>>>>
>>>>> <map:parameter name="menuId" value="menuOneId" />
>>>>> (<map:parameter name="menuId" value="{request:requestURI}" />)
>>>>>
>>>>> and to test this variable "menuId" in the xsl to put in bold the
>>>>> correct
>>>>> menu.
>>>>>
>>>>> But there are many pages and I would have to add this parameter in all
>>>>> the
>>>>> "map:match pattern" of the doctypes.xml file.
>>>>>
>>>>> I'm not lenya expert then perhaps is there another more powerfull way
>>>>> to
>>>>> implement this ?
>>>>>
>>>>> Thank you in advance for your help.
>>>>>
>>>>>
>>>> Are you talking about authoring or for the live side? 1.2 or 1.4? For
>>>> 1.4 on the live side you can test for @current = 'true' in the XSLT.
>>>> The
>>>> menu.xsl file that is the default does this and can be your guide.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/How-to-identify-an-item-menu-tf3175779.html#a8823909
Sent from the Lenya - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]