Прескочи към главното съдържание

Show text on the portal only to a certain usergroup - Developer & Reporting / Portal Customization - Deskpro Support

Show text on the portal only to a certain usergroup

Списък с автори

Question:

How do I edit a portal template to show some text only to users who belong to a particular usergroup?

 

Answer:

First, look up the ID number of the usergroup in Admin > CRM > Usergroups with the small gear icon at the top right of the usergroup list.

 

Now add this to the portal template where you want the message to appear:

 

{% if app.user.isMemberOfUsergroup(N) %}

Text to display

{% endif %}

 

replacing N with the ID of the usergroup, and putting the message you want in place of "Text to display".

 

See the admin manual for full details about editing Deskpro templates.

Полезен Не беше полезно

13 от 24 души смятат тази страница за полезна

Добави коментар

Моля, логнете се или се регистрирайте, за да оставите коментар.

Подсещане за парола?