[英]Liftweb “Sign Up” menu item
Does anyone happen to know what the name is used for the sign up menu item? 有没有人碰巧知道注册菜单项的名称是什么? I've tried
<lift:menu.item name="Signup" name="sign.up" name="sign_up"
all to no avail. 我试过
<lift:menu.item name="Signup" name="sign.up" name="sign_up"
都无济于事。 name="Login"
produces a Log In link just fine. name="Login"
生成一个登录链接就好了。
What am I actually doing wrong here? 我在这里做错了什么?
It should be name="CreateUser"
. 它应该是
name="CreateUser"
。
The definition is like this (somewhere in ProtoUser.scala in Lift 2.1): 定义是这样的(在Lift 2.1中的ProtoUser.scala中的某个地方):
/**
* The menu item for creating the user/sign up (make this "Empty" to disable)
*/
def createUserMenuLoc: Box[Menu] =
Full(Menu(Loc("CreateUser", signUpPath, S.??("sign.up"), createUserMenuLocParams)))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.