Replies: 1 comment 5 replies
|
Should be able to add the settings using a settings display driver for the BagPart We did a feature like this at work and it works well, but our needs are different from most peoples. Definitely doable though. |
5 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.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I've created a
Content TypenamedUser, which I intend to use in an Orchard Core headless microservice. This service will enrich the user information provided by the SSO microservice. TheUsercontent type should be similar to the following JSON structure:{ "SsoUserId": "ajaolkaolk2", "Information": { "ContactPerson": "Name", "Email": "email@example.com", "Phone": "123456789", "Street": "Pippo Blvd", "StreetNumber": "20", "City": "Pluto", "ZipCode": "12345", "Logo": "https://www.example.com/logo.jpg" } }Additionally, I've created an
Informationcontent type. In theUsercontent type, I've added abagpart, as shown here:Within the
bagsettings, I've chosen to include theInformationcontent type:Now from the backend I can create multiple
Informationitems, but I only need one.I used a
bagto prevent direct creation of theInformationcontent type and to avoid to use a picker in theUsercontent type.Informationitem per user?ContentHandlerBaseclass be a solution, or is there another method to achieve this from the backend?Thank you
All reactions