我正在研究如何使用 Boot.scala 将 Menu.Builder 组合在一起,但有一件事让我感到困惑。我确实看到了登录/注册的选项,但它没有显示为站点地图上的项目之一。这实际上是从哪里来的…我的困惑可能来自于没有太多的java经验…我开始有了感觉,但我只是没有看到那些特定的项目被扔到菜单中的位置自己。
最后基本上我只是想尝试一下并重新排列default.html只是为了看看现在是什么。
I'm taking a look at how Menu.Builder is pulled together using Boot.scala and there's one thing that confuses me. I do see the option to login/register however it doesn't show up as one of the items on the sitemap. Where does that actually come from...my confusion may come from not much java experience at all...lift I'm starting to get a feel for but I'm just not seeing where those particular items get thrown into the menu its self.
In the end basically I was looking to just toy around and rearrange default.html just to see what's what at the moment.
发布评论
评论(2)
我不知道您使用的是哪个 Lift 版本,但使用最新快照版本中的原型在
Boot.scala
文件中提供了这一点:其中用户是扩展 Lift 的 MegaProtoUser< /a>,它负责定义基本用户帐户。它还具有为所有用户管理页面生成 SiteMap 菜单的方法,该方法在 Boot 类中使用,如上面的代码片段中所做的那样。
I don't know which Lift version you are using, but using an archetype from the latest snapshot version provides this in the
Boot.scala
file:Where the user is an object that extends Lift's MegaProtoUser, which takes care of defining a basic user account. It also has a method to generate SiteMap menu's for all user management pages, which is used in the Boot class, as is done in the above snippet.
好的,这篇文章为我提供了我需要的信息... http://groups.google.com/group/liftweb/browse_thread/thread/e0619231a8ec5cab/f771314fcfad439a?lnk=gst&q=MegaProtoUser#f771314fcfad439a
现在看一下框架并从我的身份验证系统开始。
Ok, this post is giving me the info I needed... http://groups.google.com/group/liftweb/browse_thread/thread/e0619231a8ec5cab/f771314fcfad439a?lnk=gst&q=MegaProtoUser#f771314fcfad439a
Taking a look at the framework now and starting on my auth system.