Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Helme committed Feb 9, 2012
1 parent ac4382f commit 68c26bc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Expand Up @@ -6,26 +6,26 @@ To use the utility in your own project:

1. download and build the TBUtils library:

git clone https://github.com/dph01/lift-TBUtils
cd liftTBUtils
./sbt publish-local`
git clone https://github.com/dph01/lift-TBUtils
cd liftTBUtils
./sbt publish-local`

2. In the project in which you want to use the library, add the following to the dependencies in the project's build.sbt:

"com.damianhelme" %% "tbutils" % "0.1.0" % "compile"

3. In Boot.scala, define your menu sitemap with something like:

val entries = List(Menu("Home") / "index",
Menu("Page 1") / "page1",
Menu("Page 2") / "page2",
Menu("Page 3") / "#" >> PlaceHolder submenus (
Menu("Page 3a") / "page3a" ,
Menu("Page 3b") / "page3b" ,
Menu("Page 3c") / "page3c"))
val entries = List(Menu("Home") / "index",
Menu("Page 1") / "page1",
Menu("Page 2") / "page2",
Menu("Page 3") / "#" >> PlaceHolder submenus (
Menu("Page 3a") / "page3a" ,
Menu("Page 3b") / "page3b" ,
Menu("Page 3c") / "page3c"))
def sitemap = SiteMap(entries: _*)
LiftRules.setSiteMap(sitemap)
def sitemap = SiteMap(entries: _*)
LiftRules.setSiteMap(sitemap)

Every menu entry with a submenu will the rendered as a menu drop-down. The 'PlaceHolder' is optional, but it's clearer to
other developers that you intend this entry to be the root of a drop-down if you include it.
Expand Down

0 comments on commit 68c26bc

Please sign in to comment.