최근 검색


최근 검색 없음

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

댓글