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 24 posts 164 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 87 posts 321 karma points
    Nov 08, 2017 @ 09:26
    Matthew
    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

  • Tim Geyssens 6331 posts 14770 karma points MVP 2x
    Nov 08, 2017 @ 09:33
    Tim Geyssens
    100

    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 24 posts 164 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 !

  • Tim Geyssens 6331 posts 14770 karma points MVP 2x
    Nov 14, 2017 @ 09:03
    Tim Geyssens
    1

    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