Architecture question: store data in content tree goor or bad ?
Hello everyone,
For one of my project I use the content tree to store the result submitted by a form i've created.
So i have 2 content node on the root:
"Home" (the first node for the website)
"Ticket request" (it contains all requests to receive a ticket)
I've done that because it provides a free CRUD app with authorization access already developped.
I didn't want to create a new table in the database, create the repository, create a plugin for the crud, etc....
Could you tell me if you think that's a good or bad practice ?
I would use a custom section for this and store them in another table. This allows you to still have the authorization be handled by Umbraco as you can set section level permissions etc. Also, the section you create means that the items are not accessible via a URL as they are in the Content tree even though they don't render anything.
Architecture question: store data in content tree goor or bad ?
Hello everyone,
For one of my project I use the content tree to store the result submitted by a form i've created.
So i have 2 content node on the root:
I've done that because it provides a free CRUD app with authorization access already developped. I didn't want to create a new table in the database, create the repository, create a plugin for the crud, etc....
Thank you by advance ! Ali
Hi,
I would use a custom section for this and store them in another table. This allows you to still have the authorization be handled by Umbraco as you can set section level permissions etc. Also, the section you create means that the items are not accessible via a URL as they are in the Content tree even though they don't render anything.
https://our.umbraco.org/Documentation/Extending/Section-Trees/
It does mean you have to handle the CRUD operations yourself though.
Matt
Comment author was deleted
Just FYI A tool for quickly creating custom sections/trees/edit pages based upon a table (and more) is https://our.umbraco.org/projects/developer-tools/ui-o-matic/ :)
Thank you very much, what a wonderful tool !
I'll investigate on replacing the data i stored in the content tree by this.
Maybe one more question for you: the view template of the container tree is customisable ?
Example: If I have a table "Reservation", maybe i would like to display some graphs (category, dates, etc...)
Edit: don't matter, I just found it ^^' http://uiomatic.readthedocs.io/en/stable/07.Dashboard/
Thank you !
Comment author was deleted
Yup you can customize the views, take a look at the docs http://uiomatic.readthedocs.io/en/stable/
is working on a reply...