get current logged in user Static content block.

Mad3
Tera Expert

Hi,

We have to create static content block to use in dashboard as landing page, I want to get current logged in user in content block.

 

Trying in this way, here i am not able to get current logged in user.

 

Can some one help to get this done.

 

content block.PNG

 

 

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hey @Mad3,

 

Have you considered using 'Dynamic Content' instead?

Not an expert on Jelly but something like below will work

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<g:evaluate object="true" var="jvar_name" jelly="true">
   var jvar_name = gs.getUserName();
   jvar_name;
</g:evaluate>

<p>Welcome, ${jvar_name}!</p>

</j:jelly>

 

Thanks

View solution in original post

7 REPLIES 7

Community Alums
Not applicable

I assume the Static content is a HTML field so, U can try with mail script and using here.

Anil Nemmikanti
Giga Guru

I assume the Static content is a HTML field so, U can try with mail script and using here.

Hi @Anil Nemmikanti 

 

Thank you for the reply!

 

Tried mail script in HTML, script doesn't working here.

content block-HTML.PNG

content block - End user view.PNG

Can you please try to write an onLoad client script on that table for that record to set HTML field with expected logged In user data.