تخطي إلى المحتوى الرئيس

Show text on the portal only to a certain usergroup - قاعدة المعلومات / Deskpro Legacy - Deskpro Support

WARNING: You're browsing documentation for an older version of Deskpro. For the most up-to-date version, see: How can I show text on the Help Center only to a certain usergroup?

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.

مفيد. غير مفيد

وجد 32 من 71 شخص هذه الصفحة مفيدة

أضف تعليق

الرجاء تسجيل الدخول أو التسجيل لتقديم تعليق.

هل تحتاج إلى تذكير بكلمة المرور؟