Show username in a custom page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antony
    Junior Member
    • Oct 2017
    • 6

    Show username in a custom page

    Hi, how can I print the username in a custom page or dashboard? It does exist a short code?
    Example: echo {username}
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Find the view and template, what you need, set in 'data' user name, or other values

    Comment

    • antony
      Junior Member
      • Oct 2017
      • 6

      #3
      Can you explain, please.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        for example view for dashlet client/src/views/dashboard.js
        it contains 'data' function. This attributes are passed to template client/res/templates/dashboard.tpl

        to define username and show it, add to template {{username}} in needed place and in the view, data object username:this.getUser().get('userName'),

        Comment

        • antony
          Junior Member
          • Oct 2017
          • 6

          #5
          Unfortunately I still do not understand. Is it so complicated?
          Could you explain me step by step?is the first time I use this crm, thank you so much

          Comment

          Working...