I am trying to make a very simple learning managemt system in Umbraco, and need to store which pages the front-end member has opened.
Is there any suggestions on how to save that the user has opened the page?
I guess if I want to use the existing content, I have to save it either on the page, or on the member? Or would it be better to make an own table for this?
Save that user has read/opened page in Umbraco
I am trying to make a very simple learning managemt system in Umbraco, and need to store which pages the front-end member has opened.
Is there any suggestions on how to save that the user has opened the page?
I guess if I want to use the existing content, I have to save it either on the page, or on the member? Or would it be better to make an own table for this?
Hi Ole,
You could use the
RelationService
for this. Relating the page's node ID with the member's ID.There's an old blog post about using relationships, but it was written for Umbraco v4, so the APIs are out of date, but the concepts are similar.
https://umbraco.com/follow-us/blog-archive/2012/12/7/getting-to-know-umbraco-relations/
Cheers,
- Lee
Hi Lee,
Wow! That's perfect:)
Thanks!
Hi Ole,
Relations is one of the lesser know features of Umbraco that can be powerful to use.
Just in case you hadn't seen, there's a "Relation Types" tree in the Developer section, where you can create new types and view the relation data.
All the best!
Cheers,
- Lee
is working on a reply...