I have a little desire, if could be possible:
in the documentation to <lift:Menu.item /> there is note, that
" Normally, the Menu item is not shown on pages that match its Menu's
Loc. "
It would be awesome, if I could use some attribute to force this
behaviour and show generated link even on page that match its Menu's
Loc.
I suggest use same attribute as exists in <lift:Menu.builder /> -
linkToSelf="true"
thanks for considering.
On 12. Jan, 14:42 h., "Derek Chen-Becker" <
dchenbec...@gmail.com>
wrote:
> Let me work on these. Looks like it's going to be a SiteMap/Menu month :-)
>
> Derek
>
> On Jan 12, 2011 5:58 AM, Debilski &
lt;rikebenjamin.schupp...@googlemail.com> wrote:
>
> Hi,
>
> I think I’ve found two issues with Menu.item.
>
> The first is that currently part of the code is
>
> case (Full(loc), _, _) if
loc.name == name => {
>
> if (S.attr("donthide").isEmpty) Text("")
>
> if (!text.isEmpty) Group(text)
>
> else Group(loc.linkText openOr Text(
loc.name))
>
> }
>
> i.e. in my opinion, checking for the ‘donthide’ attribute does not
>
> change anything.
>
> The second seems to come from SiteMap.buildLink. When building a link,
>
> it is checked for nodeseq.text.length > 0 with the effect that
>
> <lift:Menu.item name="home"><img src="logo.png" /></lift:Menu.item>
>
> shows no image but the default text. But, when surrounded with spaces
>
> <lift:Menu.item name="home"> <img src="logo.png" /> </lift:Menu.item>