Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen

Diego Rod
Beigetreten 15. Apr. 2021
·
Letzte Aktivität 14. Feb. 2022
Folge ich
0
Follower
0
Gesamtaktivitäten
4
Stimmen
0
Abonnement
1
AKTIVITÄTSÜBERSICHT
BADGES
BEITRÄGE
POSTS
COMMUNITY-KOMMENTARE
BEITRAGSKOMMENTARE
AKTIVITÄTSÜBERSICHT
Neueste Aktivität von Diego Rod
Diego Rod hat einen Kommentar hinterlassen
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!
Kommentar anzeigen · Gepostet 24. Sept. 2016 · Diego Rod
0
Follower
0
Stimmen
0
Kommentare
Diego Rod hat einen Kommentar hinterlassen
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!
Kommentar anzeigen · Gepostet 24. Sept. 2016 · Diego Rod
0
Follower
0
Stimmen
0
Kommentare
Diego Rod hat einen Post erstellt
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!
Gepostet 22. Sept. 2016 · Diego Rod
0
Follower
3
Stimmen
5
Kommentare