scala - Showing parts of a sitemap in different LocGroup -


i have problem locgroup in liftweb 3.0.

the main goal show normal user menu this:

val usermenu = list(     menu("first") / "100_first" / "100_first_main" submenus (     menu("first_sub") / "100_first" / "100_first_sub" submenus (     menu("first_sub_sub") / "100_first" / "220_first_sub_sub" submenus ( 

etc. etc.

in addition there has kind of "service-menu" should shown in different div on template:

val servicemenu = list(menu("impressum") / "about" / "index" >> hidden >> locgroup("servicenav")) 

the "user" sitemap shows should be, "service-menu" doesn't. missing since same approach in documentation?


my template surrounds mail html file:

<div id="servicenavblock">     <div id="servicenav">         <div data-lift="menu.group?group=servicenav">service-navigation</div>     </div> </div> 

the creation of sitemap in boot.scala:

liftrules.setsitemap(sitemap(menus.sitemap: _*)) 

and index.html:

<body data-lift-content-id="content"> <div id="content" data-lift="surround?with=default;at=snippet_content">     <h2>willkommen</h2> </div> </body> 

thanks comment brett working html-template:

<div id="servicenav">     <div>         <ul>             <li data-lift="menu.group?group=servicenav;eager_eval=true"><a>service</a></li>         </ul>     </div> </div> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -