Can not add CURDify menu to sitemap in lift

74 views Asked by At

I have sitemap code like that:

object Site {
    val booksMenus   = Book.menus
    val authorsMenus   = Author.menus
    val publishersMenus   = Publisher.menus

    def sitemap = SiteMap(
         home          >> LocGroup("lg1"),
         static,
}

I want to add LocGroup to my menus and add them to sitemap for example booksMenus is List[Menu] doing that as first answer suggested

booksMenus.map(_ >>LockGroup("lb"))

can not be possible because appending Loc only for Menuable not Menu type There is anyway to do that?

1

There are 1 answers

6
VasiliNovikov On

value >> is not a member of List[net.liftweb.sitemap.Menu]

That means you should assign "group markers" to menu members, not to list of them. For example, smth like this:

booksMenus.map(x=> x >> LogGroup("lg1"))