Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Get the name of visitor group(s) applied to a text fragment

Vote:
 

Hi!

How is it possible to get the name of the visitor group(s) applied to a text fragment?

We are using the visitor groups to show different content based on a users role, and we want to show which visitor groups are shown, i.e: If the text "This is only visible for the publicists" had a visitor group named "Publicists" applied, we would like to show

Publicists: (fancy box around)

This is only visiblie for the publicists

 

I've found the PersonalizedContentFragment.Internalformat, but it is not a good way to get the data, and with more than 2 visitor groups you only get ... for the rest. But EPiServer have to save this data in some other way too?

 

 

#73619
Aug 01, 2013 9:56
Vote:
 

After alot of digging in decompiled code it looks like this is the way you guys do it. While not being pretty, it works...

#74388
Aug 27, 2013 11:06
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.