Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登陆后怎么跳转呢? #2

Open
DanceBlue opened this issue Nov 15, 2018 · 2 comments
Open

登陆后怎么跳转呢? #2

DanceBlue opened this issue Nov 15, 2018 · 2 comments

Comments

@DanceBlue
Copy link

DanceBlue commented Nov 15, 2018

或者登陆后怎么隐藏登陆和注册按钮然后显示用户信息呢?

@starlying
Copy link
Contributor

可以使用stl:if标签

@BlueCode2019
Copy link

可以使用stl:if标签

想问下,登陆成功后,希望把名字显示出来!我在官网文档看到如下的方式:
想问下兄台,安装了登陆插件后,如何在网站header里调用登陆者昵称(姓名)。我用官网教程给的代码{user.DisplayName}后,没有正确解释。
原文档给的代码
<stl:if type="IsUserLoggin">
stl:yes

您好,{user.DisplayName}
用户中心
购物车
我的订单
<stl:logout class="logout">退出</stl:logout>

</stl:yes>
stl:no

<stl:login style="color:#797979;">登录</stl:login>
<stl:register style="color:#797979;">注册</stl:register>

<stl:login type="weibo" class="weibo">微博登录</stl:login>
<stl:login type="qq" class="qq">QQ登录</stl:login>
<stl:login type="weixin" class="weixin">微信登录</stl:login>

</stl:no>
</stl:if>

不过,这个在我cms 6.0版本无效,{user.DisplayName}没有能解析出登陆的用户名,是缺少什么必要的前提吗?我看5.0 cms提到用dynamic,6.0是否也需呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants