I have documents in the content tree that I would like to store member notes. So for instance, a member goes to a page and adds their own personal notes. Storing them in the content tree would not be a good idea. Typically I would store them in a table and create a one to many relationship and just filter it out by UserId.
Whats the best approach? Would I just create a custom table and write to it? Obviously it wouldn't be integrated into the back end so I would have create another page so all of the notes can be administered if needed.
You could create your custom table and then perform some basic CRUD within an UmbracoApi controller. Once you’ve done that, you can create a custom section and use an AngularJs controller to access all your methods.
If you're unfamiliar with creating custom sections, some useful (but slightly outdated) articles here:
Storing Member Notes
I have documents in the content tree that I would like to store member notes. So for instance, a member goes to a page and adds their own personal notes. Storing them in the content tree would not be a good idea. Typically I would store them in a table and create a one to many relationship and just filter it out by UserId.
Whats the best approach? Would I just create a custom table and write to it? Obviously it wouldn't be integrated into the back end so I would have create another page so all of the notes can be administered if needed.
Thoughts?
I think the approach you’ve mentioned is spot on.
You could create your custom table and then perform some basic CRUD within an
UmbracoApi
controller. Once you’ve done that, you can create a custom section and use an AngularJs controller to access all your methods.If you're unfamiliar with creating custom sections, some useful (but slightly outdated) articles here:
is working on a reply...