Fill bogus data fields in content types pulled from Content Definition Manager #11225
Unanswered
vengi83644
asked this question in
Q&A
Replies: 1 comment 4 replies
-
If I understand correctly, you want to loop through the widget content types, and for each of these, you want to create a new widget content item, and fill out their Title and HtmlBody. If indeed, then here you can find an annotated example of how to create and update a content item programmatically. Instead of |
Beta Was this translation helpful? Give feedback.
4 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.
-
I am using Decoupled CMS and have created some content types and stereotyped as widgets to use in flow parts in many pages.
While creating a page, the content author can select any of these widgets and fill in any data as they need.
I want to publish a page where I can show all these widgets and let the author decide which one to use based on the fields and UI.
I am planning to pull all the content definitions that are stereotyped as widgets and fill in some bogus data and render them one by one with their names.
Here is my cshtml for a single widget
I want to dynamically figure out the Title and Body fields and fill in any data to the Text and HTML respectively.
I don't know how to do these dynamically for all widgets.
Has anyone tried this?
Beta Was this translation helpful? Give feedback.
All reactions