[Lift] Re: Attributes in Menu.item not rendered
Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the doco I should be able to do with lift:Menu.item name=helpMenu a:class=nav / where helpMenu has been defined in the sitemap. The link renders but the attribute does not. Which incantation did I forget? Rgds -- Ewan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Attributes in Menu.item not rendered
None I'm afraid. I have: lift:Menu.item name=helpMenu a:class=navHelp Me!/ lift:Menu.item which results in: a href=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the doco I should be able to do with lift:Menu.item name=helpMenu a:class=nav / where helpMenu has been defined in the sitemap. The link renders but the attribute does not. Which incantation did I forget? Rgds -- Ewan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Attributes in Menu.item not rendered
Oh do you use the same name 'helpMenu' for the current loc? a: prefixed attributes are added only if loc.name != name. On Jun 8, 1:30 pm, Ewan ehar...@gmail.com wrote: None I'm afraid. I have: lift:Menu.item name=helpMenu a:class=navHelp Me!/ lift:Menu.item which results in: a href=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the doco I should be able to do with lift:Menu.item name=helpMenu a:class=nav / where helpMenu has been defined in the sitemap. The link renders but the attribute does not. Which incantation did I forget? Rgds -- Ewan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Attributes in Menu.item not rendered
I think you mean and reading the src if the page I am on is the menu item in question don't render - correct? If so then the attribute(s) are still not rendered from any part of the site and indeed the link itself is not rendered when on the page that the Loc points to. Can you or anyone confirm that it works for them? Thx -- Ewan On Jun 8, 4:14 pm, marius d. marius.dan...@gmail.com wrote: Oh do you use the same name 'helpMenu' for the current loc? a: prefixed attributes are added only if loc.name != name. On Jun 8, 1:30 pm, Ewan ehar...@gmail.com wrote: None I'm afraid. I have: lift:Menu.item name=helpMenu a:class=navHelp Me!/ lift:Menu.item which results in: a href=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the doco I should be able to do with lift:Menu.item name=helpMenu a:class=nav / where helpMenu has been defined in the sitemap. The link renders but the attribute does not. Which incantation did I forget? Rgds -- Ewan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Attributes in Menu.item not rendered
Ewan, I just committed a fix on master. The pattern matching was actually failing and the attributes were never added. I gave it a try and worked for me. Please test and let me know if it works for you Br's, Marius On Jun 8, 6:58 pm, Ewan ehar...@gmail.com wrote: I think you mean and reading the src if the page I am on is the menu item in question don't render - correct? If so then the attribute(s) are still not rendered from any part of the site and indeed the link itself is not rendered when on the page that the Loc points to. Can you or anyone confirm that it works for them? Thx -- Ewan On Jun 8, 4:14 pm, marius d. marius.dan...@gmail.com wrote: Oh do you use the same name 'helpMenu' for the current loc? a: prefixed attributes are added only if loc.name != name. On Jun 8, 1:30 pm, Ewan ehar...@gmail.com wrote: None I'm afraid. I have: lift:Menu.item name=helpMenu a:class=navHelp Me!/ lift:Menu.item which results in: a href=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the doco I should be able to do with lift:Menu.item name=helpMenu a:class=nav / where helpMenu has been defined in the sitemap. The link renders but the attribute does not. Which incantation did I forget? Rgds -- Ewan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Attributes in Menu.item not rendered
Yep that works fine now. I'll now go and look to see how you did it. cheers -- Ewan On Jun 8, 5:46 pm, marius d. marius.dan...@gmail.com wrote: Ewan, I just committed a fix on master. The pattern matching was actually failing and the attributes were never added. I gave it a try and worked for me. Please test and let me know if it works for you Br's, Marius On Jun 8, 6:58 pm, Ewan ehar...@gmail.com wrote: I think you mean and reading the src if the page I am on is the menu item in question don't render - correct? If so then the attribute(s) are still not rendered from any part of the site and indeed the link itself is not rendered when on the page that the Loc points to. Can you or anyone confirm that it works for them? Thx -- Ewan On Jun 8, 4:14 pm, marius d. marius.dan...@gmail.com wrote: Oh do you use the same name 'helpMenu' for the current loc? a: prefixed attributes are added only if loc.name != name. On Jun 8, 1:30 pm, Ewan ehar...@gmail.com wrote: None I'm afraid. I have: lift:Menu.item name=helpMenu a:class=navHelp Me!/ lift:Menu.item which results in: a href=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the doco I should be able to do with lift:Menu.item name=helpMenu a:class=nav / where helpMenu has been defined in the sitemap. The link renders but the attribute does not. Which incantation did I forget? Rgds -- Ewan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---