PersonalizedPages in CMS 5?

Member since: 2006

In our 4.62 site we have a function which keep track if a user had read a page(news) or not. I'm trying make the same functionallity in CMS 5. But I haven't figured out how to store or retrieve personalized data in CMS 5 R2. Any ideas on how I could solve this?


This is how it looks like in 4.62:


protected void Page_Load(object sender, System.EventArgs e)
PersonalizedData.Current["PageRead", CurrentPageLink] = true;


protected void Page_Load(object sender, System.EventArgs e)
PersonalizedData.Current["PageRead", CurrentPageLink] = true;

#29966 May 25, 2009 13:50
  • Mårten Berg
    Member since: 2004

    The equivalent in CMS 5 is the EPiServer.Personalization.EPiServerProfile class, which makes use of the ASP.NET profile model.

    This URL will get you started:

    Hope it helps,

    #29969 May 25, 2009 15:38
  • Magnus Rahl
    Member since: 2008
    I might be wrong here because I didn't check, but I don't think you can use the multi dimensional indexer [string, PageReference] with EPiServerProfile. EPiServerProfile derives from ProfileBase and Microsoft does not like multi dimensional indexers (that is, FxCop does not permit them).
    #29975 May 26, 2009 7:20