Implementing Your Bookmarks

Posted by Community Admin on 04-Aug-2018 14:19

Implementing Your Bookmarks

All Replies

Posted by Community Admin on 30-Nov-2012 00:00

How did Telerik do the Your Bookmarks under Your Account when logged in?
I tired searching for this but I get every page when searching for Your Bookmarks!  But is is a cool feature and I am interested in how they did it.

Thanks!

Posted by Community Admin on 30-Nov-2012 00:00

The way I implemented it was add a new long text field to my basic profile. 

Then created a service that would just add the current page to a JSON array.

Sitefinity comes with NewtonSoft JSON so you can just serialize it and deserialize it to\from a string super easy

ex:
Newtonsoft.Json.JsonConvert.SerializeObject(favs);

So whenever a save or delete happens I just Deserialize the data back to a List<> ...add\remove the item, then serialize it backup and save to the profile field.

This thread is closed