Good Morning. I try to print out the logged in users Email address into the source code or DOM. I try to find a solution but it refers always to /members.js and that has to be loaded. Is that possible, that file is not present. Is there a mistake in the theme or are these just old information. Is there another way to do it? Where on the Pro plan. Thank You, Thomas.
If you can edit your theme, adding {{@member.name}} or {{@member.email}} should get you the data you want. So then you do something like this monstrosity of mixed hbs (evaluated on the server) and js (evaluated in the browser)
<script>
{{#if @member}}
// only happens if they're logged in:
let memberName = "{{@member.name}}";
let memberEmail = "{{@member.email}}";
// do some stuff
{{else}}
// put a fallback here for if they aren't logged in, if needed.
{{/if}}
</script>
Thank You. I just sent you an Email. Thomas.