Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali Z 31 posts 173 karma points
    Nov 08, 2017 @ 06:28
    Ali Z
    0

    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 ?
    • How you have done it differently ?
    • Is there a better way to store them ?

    Thank you by advance ! Ali

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Nov 08, 2017 @ 09:26
    Matthew Wise
    0

    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

    Nov 08, 2017 @ 09:33

    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/ :)

  • Ali Z 31 posts 173 karma points
    Nov 14, 2017 @ 09:01
    Ali Z
    0

    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

    Nov 14, 2017 @ 09:03

    Yup you can customize the views, take a look at the docs http://uiomatic.readthedocs.io/en/stable/

Please Sign in or register to post replies

Write your reply to:

Draft