Replies: 2 comments 7 replies
-
Parts are attached to content types, for example, |
Beta Was this translation helpful? Give feedback.
1 reply
-
@lbcsy in orchard's concept,
In your case you can build a custom field eg called Duration that will have StartDate and EndDate. And you can attach that Duration field to your content Part |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Just played with Orchard Core a little bit and I am most interested in the Content Management area, where you can create content type, content part etc. But I haven't figure out how to add another Content Part into a content part while you are creating it. For example, in a healthcare app, people's name has been used at a lot of places, so I would like to create it as a content part so that I can attach it to content type like Patient, Doctor, Nurse etc. In this name part (HumanName), on top of the fields like first name, last name etc., I would also like to attach another part to it to represent the name's effective period, this part (Period) contains two date fields: Start and End. The reason I like to define Period as part because it looks quite common and can be resued in many other places too, alternative, you will have to add Start and End fields all the time when you need something to represent a period.
There maybe some reasons that Orchard has already considered and decided not to support adding part to a part (interestingly, it seems it can achieve adding content type to content part via a field), can anyone shed some light on the reasons?
Beta Was this translation helpful? Give feedback.
All reactions