How can I display the name of the current user

5
On top of my screen I want to show the username of the current logged on user (as on top of this forum) prefixed with a welcome text (ie. welcome < username >). How can I manage that? I can format the desired string with a microflow, but I can't find a way to directly put the outcome on a form.
asked
5 answers
3

The widget is already available in the appstore, named 'LoginButton'

answered
2

I just got this to work today in one of my projects. Here are the steps I took:

  1. Download the Login Button app from the app store.

  2. Create a dummy form in your project with a table, and insert the widget into that table. Make sure to set the required widget properties (User Entity).

  3. Now launch your project and use Firebug (Firefox development add-on) to inspect the HTML code generated by the Login Button widget.

  4. Copy the DIV that was generated by the widget into your index.html (somewhere within the MainBox DIV). In my project it looks like this:

Now re-load your portal page and voila! It should work.

Cheers.

answered
0

In 2.5 will be a widget available for that purpose.

answered
0

How can I display it in the header of every page ,I think there is a way to put it in the index.html page ,how?

answered
0

To show this widget in your theme, just add the div to your index.html, see this post

answered