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

    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 108 posts 463 karma points c-trib
    Nov 08, 2017 @ 09:26
    Matthew Wise


    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.

    It does mean you have to handle the CRUD operations yourself though.


  • Tim Geyssens 6371 posts 14846 karma points MVP 2x c-trib
    Nov 08, 2017 @ 09:33
    Tim Geyssens

    Just FYI A tool for quickly creating custom sections/trees/edit pages based upon a table (and more) is :)

  • Ali Z 24 posts 164 karma points
    Nov 14, 2017 @ 09:01
    Ali Z

    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 ^^'

    Thank you !

  • Tim Geyssens 6371 posts 14846 karma points MVP 2x c-trib
    Nov 14, 2017 @ 09:03
    Tim Geyssens

    Yup you can customize the views, take a look at the docs

Please Sign in or register to post replies

Write your reply to: