Skip to content

Latest commit

 

History

History
97 lines (80 loc) · 1.55 KB

README.md

File metadata and controls

97 lines (80 loc) · 1.55 KB

Otto - Auto Organizer for Umbraco

Automatically organize your content and media into folder structures in the tree.

Installing

dotnet add Our.Umbraco.Otto

Configuring

To configure the Organizer package, update the Application Settings in your solution with the appropriate rules to apply the appropriate organizer for your use case.

{
  "Otto": {
    "Content": {
      "Rules": []
    },
    "Media": {
      "Rules": []
    }
  }
}

Organizers

Included with the package are the following organizers that can be used.

Alphabetical

{
  "Organizer": "Alphabetical",
  "PropertyAlias": "",
  "SortOrder": "Ascending",
  "ParentTypes": [],
  "ItemTypes": [],
  "FolderType": "",
  "NumberOfCharacters": 1
}

Date

{
  "Organizer": "Date",
  "PropertyAlias": "",
  "DefaultSortOrder": "Ascending",
  "ParentTypes": [],
  "ItemTypes": [],
  "Day": {
    "Format": "dd",
    "FolderType": "",
    "CreateFolder": true,
    "SortOrder": "Ascending"
  },
  "Month": {
    "Format": "MM",
    "FolderType": "",
    "CreateFolder": true,
    "SortOrder": "Ascending"
  },
  "Year": {
    "Format": "YYYY",
    "FolderType": "",
    "CreateFolder": true,
    "SortOrder": "Ascending"
  }
}

Taxonomy

{
  "Organizer": "Taxonomy",
  "PropertyAlias": "",
  "SortOrder": "Ascending",
  "ParentTypes": [],
  "ItemTypes": [],
  "FolderType": ""
}

Extending

builder.ContentOrganizer()
    .Add<MyCustomContentOrganizer>();

builder.MediaOrganizer()
    .Add<MyCustomMediaOrganizer>();