* Basic structure for document and document type read API * Handle unpublished, non-variant content * Expose content type key on ContentTypeSort * Add the remaining properties to document type (minus list view info, still pending) * Obsolete more ILocalizationService usage * Add URLs and template data to document view model * Clean up + add proprety type appearance * update submodule commit * front-end commit * latest front-end commit * latest commit * latest front-end commit * Rename content property to content value in view model layer * Add contextual JSON serialization as default JSON serializer * Add FIXME to content type sort + rearrange constructor parameters * Fix broken remark tag * Whitelist breakage for ContentTypeSort * Add variance info to property type output * Update src/Umbraco.Cms.Api.Management/Controllers/Document/ByKeyDocumentController.cs Co-authored-by: Bjarke Berg <mail@bergmania.dk> * Update src/Umbraco.Cms.Api.Management/Controllers/DocumentType/ByKeyDocumentTypeController.cs Co-authored-by: Bjarke Berg <mail@bergmania.dk> * Update src/Umbraco.Cms.Api.Management/Factories/ContentUrlFactory.cs Co-authored-by: Bjarke Berg <mail@bergmania.dk> * Add a few FIXME comments about async entity retrieval --------- Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com> Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Umbraco Test Data
This project is a utility to be able to generate large amounts of content and media in an Umbraco installation for testing.
Usage
You must use SQL Server for this, using SQLCE will die if you try to bulk create huge amounts of data.
It has to be enabled by an appSetting:
{
"Umbraco": {
"CMS": {
"TestData": {
"Enabled" : true,
}
}
}
}
Once this is enabled this endpoint can be executed:
/umbraco/surface/umbracotestdata/CreateTree?count=100&depth=5
The query string options are:
count= the number of content and media nodes to createdepth= how deep the trees created will belocale(optional, default = "en") = the language that the data will be generated in
This creates a content and associated media tree (hierarchy). Each content item created is associated to a media item via a media picker and therefore a relation is created between the two. Each content and media tree created have the same root node name so it's easy to know which content branch relates to which media branch.
All values are generated using the very handy Bogus package.
Schema
This will install some schema items:
umbTestDataContentDocument Type. TIP: If you want to delete all of the content data generated with this tool, just delete this content typeUmbracoTestDataContent.RTEData TypeUmbracoTestDataContent.MediaPickerData TypeUmbracoTestDataContent.TextData Type
For media, the normal folder and image is used
Media
This does not upload physical files, it just uses a randomized online image as the umbracoFile value.
This works when viewing the media item in the media section and the image will show up and with recent changes this will also work
when editing content to view the thumbnail for the picked media.