I have built a main menu by using menu token. In main menu i have added a item and chosen Current-User:name as token of current logged in user.

But in case of anonymous user, we are not able to login link instead of username.

Can anyone please help me ?

Comments

HimanshuBatra created an issue. See original summary.

andralex’s picture

Category: Bug report » Feature request

Hello, @HimanshuBatra

Is for me this is not a bug of the module. Moving it to "Feature request".

According to your question, the possible solution could be to create two different menus (one for authorized and second for anonymous uses) and place them in blocks. Then you can configure the visibility of the blocks according to the user role.

develcuy’s picture

Version: 8.x-1.x-dev » 9.1.x-dev