We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26310
    • 130 Posts
    Do we need to call the snippet in order to see a placeholder? I’m a little cloudy on this, I’m trying to show the fullname of a user once the user has logged in.

    I’m trying
    [+view.fullname+]
    but nothing is happening.

    UPDATE: Ah ha! I realize this may be a no brainer to a lot of you but after using the call:
    [!WebLoginPE? &type=`viewprofile` !]


    I can access the info I need using the placeholders

      I twitch because I care....and drink too much coffee.
      • 11054
      • 59 Posts
      I’m new to this snippet as well, but this doesn’t seem to be resolved since you are still calling the snippet in order to see the placeholder.

      I actually had the same exact question and it doesn’t seem to work. In fact, you could call the snippet with &type=`anything` and the placeholders will show, but without calling the snippet I haven’t been able to get the placeholders.

      I’m wondering if there is a system placeholder or document item that we could use to display something from the web user’s profile rather than calling the snippet each time.

      If I’m way off, I’d love to know.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Of course you need to call the snippet in order to have the placeholders; it’s the snippet that creates the placeholders in the first place.

        You can access some of the user data via the SESSION variables... http://www.sottwell.com/article-sessions.html if you log in as "test", password "testing" the SESSION values will be displayed on the page.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org