How best to create simple Availability Calendar in Umbraco? (newbie)
Hi,
I'm looking for advice on what to learn to achieve the following task:
In the backend I want to build an interface that can capture:
Month (Number) and Year (Number),
eg: 11, 2019
and nested within the parent (above) a collection of
DayDate (Number), Price (Decimal), Note (String)
eg:
01, 100, Available
08, 200, Available
15, 210, Booked
22, 150, Cut-price Friday. Grab a bargain!
The objective is to create a collection of Month-Years, each of which contains a collection of Days, which will become an availability calendar on the front end.
To clarify, as a newbie, what I would like to know is how an experienced Umbraco developer would do this (Nested Content? Stacked Content? Custom tables?) - I can then go and research the appropriate bits, secure in the knowledge I am not wasting my time researching the wrong thing.
I'm pretty sure I can work out how to get the data out of a model, into the view. It's the backend that is all new to me.
What you could do is create document types for each of your "folders" and build your content structure that way, so create year, month, day and note document types and set the permissions so month is allowed under year, etc. and build the tree out that way.
How best to create simple Availability Calendar in Umbraco? (newbie)
Hi,
I'm looking for advice on what to learn to achieve the following task:
In the backend I want to build an interface that can capture:
Month (Number) and Year (Number),
eg: 11, 2019
and nested within the parent (above) a collection of
DayDate (Number), Price (Decimal), Note (String)
eg:
01, 100, Available
08, 200, Available
15, 210, Booked
22, 150, Cut-price Friday. Grab a bargain!
The objective is to create a collection of Month-Years, each of which contains a collection of Days, which will become an availability calendar on the front end.
To clarify, as a newbie, what I would like to know is how an experienced Umbraco developer would do this (Nested Content? Stacked Content? Custom tables?) - I can then go and research the appropriate bits, secure in the knowledge I am not wasting my time researching the wrong thing.
I'm pretty sure I can work out how to get the data out of a model, into the view. It's the backend that is all new to me.
x1000 thanks
You probably don't need this package, but the screengrabs are helpful to articulate how your content tree would look: https://our.umbraco.com/packages/developer-tools/sleepymediadatefolders/#package-gallery-2
What you could do is create document types for each of your "folders" and build your content structure that way, so create year, month, day and note document types and set the permissions so month is allowed under year, etc. and build the tree out that way.
Hope that helps?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.