You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the logged in username is 'James', but what displayed on web is still {{ app.user.identity.username }}. Thus the twig tag {{ app.user.identity.username }} is not resolved in such case.
Any suggestion?
The text was updated successfully, but these errors were encountered:
Code is as below:
{{ nav_widget({
'options': {
'class': 'navbar-nav navbar-right',
},
'items': [
{ 'label': "Welcome, {{ app.user.identity.username }}", 'items': [ { 'label': 'Logout', 'url': '/site/logout', 'linkOptions': { 'data-method': 'post' } } ] }
]
}) }}
If the logged in username is 'James', but what displayed on web is still {{ app.user.identity.username }}. Thus the twig tag {{ app.user.identity.username }} is not resolved in such case.
Any suggestion?
The text was updated successfully, but these errors were encountered: