Hi David,

I created a custom snippet, MyMenu, to do this:
http://paste.pocoo.org/show/EVKLV81FdRuz257apvS7/.  See its select
method.  I just happened to rewrite the code this morning and haven't
gotten around to testing it, so I hope it still works.

Usage:
<div id="menu">
  <ul>
    <lift:MyMenu.select active:class="active" default="home" localize="true">
      <li><menu:bind name="photos" /></li>
      <li><menu:bind name="links" /></li>
      <li><menu:bind name="contact" a:id="contact" /></li>
    </lift:MyMenu.select>
  </ul>
</div>

This assumes that home, photos, links, and contact are defined as Loc
names in your SiteMap.

Let me know if you have any questions.

Regards,
Bryan Germann

On Sun, Jun 28, 2009 at 2:47 PM, David Persons<dhwpers...@gmail.com> wrote:
>
> Hello guys,
>
> For a project, we use a pre-defined html / css template. This template
> displays the menu as follows:
>
> <div id="menu">
>
>        <ul>
>
>                <li class="current_page_item"><a href="#">home</a></li>
>
>                <li><a href="#">photos</a></li>
>
>                <li><a href="#">about</a></li>
>
>                <li><a href="#">links</a></li>
>
>                <li><a href="#">contact</a></li>
>
>        </ul>
>
> </div>
>
> How can I retrieve this 'current page item' and generate the html
> shown above? Can somebody try to give a code example?
>
> regards,
> David Persons
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to