Skip to content

安装了登陆插件,希望在首页显示登陆的用户名,根据文档用{user.DisplayName},但是无效,咋回事呢? #6

@BlueCode2019

Description

@BlueCode2019

文档给的参考内容如下,我现在用的cms 6.0,是不是这个实体内容取消啦?我查文档没有一点关于这方面的介绍。想使用{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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions