最近搜索


没有最近搜索

Diego Rod's Avatar

Diego Rod

已加入2021年4月15日

·

最后活动2022年2月14日

关注

0

关注者

0

活动总数

4

投票

0

订阅

1

活动概览

的最新活动 Diego Rod

Diego Rod 进行了评论,

社区评论 Q&A - Help center and community

Ah thanks, it makes more sense now!

I was just grabbing the username from the user menu in the top left, but yeah the HelpCenter object seems like a more elegant solution.

Thanks again!

查看评论 · 已于 2016年9月24日 发布 · Diego Rod

0

关注者

0

投票

0

评论


Diego Rod 进行了评论,

社区评论 Q&A - Help center and community

Thanks Taf, but why if I try to use {{HelpCenter.user.name}} directly to print the username in the homepage template I get:

Unable to preview 'Home page' due to invalid reference: {{HelpCenter.user.name}}

Or can I use this object only in javascript? Also where can I read more about these rules? I couldn't find anywhere that I have to put "HelpCenter" before user.name for it to work.

Thanks!

查看评论 · 已于 2016年9月24日 发布 · Diego Rod

0

关注者

0

投票

0

评论


Diego Rod 创建了一个帖子,

帖子 Q&A - Help center and community

Hi! According to this doc there's a user.name object that supposedly shows the name of the logged in user, but when I add {{user.name}} to the home page template I get "Unable to preview 'Home page' due to invalid reference: {{user.name}}"

So how do I print the user name in a template? I'm not having any luck with this site's search or google :(

 

Thanks!

已于 2016年9月22日 发布 · Diego Rod

0

关注者

3

投票

5

评论