Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter structure of Uda's #50

Closed
FransdeJong opened this issue May 3, 2021 · 1 comment
Closed

Alter structure of Uda's #50

FransdeJong opened this issue May 3, 2021 · 1 comment

Comments

@FransdeJong
Copy link

When working with new or existing sites in Cloud it isn't uncommon to use Uda files to copy functionality between sites.
To make it it a little easier to identify the correct Udi a small stucture change would be great.

At the moment name and alias are located at the bottom of the Json structure.
For example:

{
  "DefaultTemplate": null,
  "AllowedTemplates": [],
  "Icon": "icon-list color-black",
  "Thumbnail": "folder.png",
  "Description": null,
  "IsContainer": false,
  "Permissions": {
    "AllowVaryingByCulture": false,
    "AllowVaryingBySegment": false,
    "AllowedAtRoot": false,
    "IsElementType": true,
    "AllowedChildContentTypes": []
  },
  "Parent": "umb://document-type-container/f6ec3671807341db8430d3f78b154364",
  "CompositionContentTypes": [],
  "PropertyGroups": [
    {
      "Key": "f7e918a2-371d-4f75-a298-dcaf4e376ca2",
      "Name": "Content",
      "SortOrder": 0,
      "PropertyTypes": [
        {
          "Key": "11dff93b-5077-447d-bfda-0e0ac30dc50f",
          "Alias": "form",
          "DataType": "umb://data-type/e535b65a4bea49c3a2fff8fd5ff70e2a",
          "Description": null,
          "Mandatory": false,
          "Name": "Form",
          "SortOrder": 1,
          "Validation": null,
          "VariesByCulture": false,
          "VariesBySegment": false,
          "LabelOnTop": false,
          "MemberCanEdit": false,
          "ViewOnProfile": false,
          "IsSensitive": false
        },
        {
          "Key": "4560557f-3fc6-4afa-8713-a55228487aba",
          "Alias": "title",
          "DataType": "umb://data-type/0cc0eba1996042c9bf9b60e150b429ae",
          "Description": null,
          "Mandatory": false,
          "Name": "Title",
          "SortOrder": 0,
          "Validation": null,
          "VariesByCulture": false,
          "VariesBySegment": false,
          "LabelOnTop": false,
          "MemberCanEdit": false,
          "ViewOnProfile": false,
          "IsSensitive": false
        }
      ]
    }
  ],
  "PropertyTypes": [],
  "Udi": "umb://document-type/5c4bcf88f708401aa1191fd1989cae22",
  "Dependencies": [
    {
      "Udi": "umb://data-type/0cc0eba1996042c9bf9b60e150b429ae",
      "Ordering": true,
      "Mode": 0
    },
    {
      "Udi": "umb://data-type/e535b65a4bea49c3a2fff8fd5ff70e2a",
      "Ordering": true,
      "Mode": 0
    },
    {
      "Udi": "umb://document-type-container/f6ec3671807341db8430d3f78b154364",
      "Ordering": true,
      "Mode": 0
    }
  ],
  "Name": "Form block",
  "Alias": "formBlock",
  "__type": "Umbraco.Deploy,Umbraco.Deploy.Artifacts.ContentType.DocumentTypeArtifact",
  "__version": "4.1.2"
}

If it is possible to move them to the top it is just a case of opening the file instead of also having to scroll through the longer files. For example:

{
  "Name": "Form block",
  "Alias": "formBlock",
  "DefaultTemplate": null,
  "AllowedTemplates": [],
  "Icon": "icon-list color-black",
  "Thumbnail": "folder.png",
  "Description": null,
  "IsContainer": false,
  "Permissions": {
    "AllowVaryingByCulture": false,
...
}

It's the small things that can make life easier ;-)

@nul800sebastiaan nul800sebastiaan transferred this issue from umbraco/Umbraco.Cloud.Issues May 6, 2021
@nul800sebastiaan nul800sebastiaan added state/needs-investigation This requires input from HQ or community to proceed type/feature labels May 10, 2021
@AndyButland
Copy link

This is implemented in the referenced PR, amending the serialization such that the name and alias fields are at the top of the file. Due in the next minor release, 4.2.0.

@umbrabot umbrabot removed the state/needs-investigation This requires input from HQ or community to proceed label May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants