Automatically organize your content and media into folder structures in the tree.
dotnet add Our.Umbraco.Otto
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": []
}
}
}
Included with the package are the following organizers that can be used.
{
"Organizer": "Alphabetical",
"PropertyAlias": "",
"SortOrder": "Ascending",
"ParentTypes": [],
"ItemTypes": [],
"FolderType": "",
"NumberOfCharacters": 1
}
{
"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"
}
}
{
"Organizer": "Taxonomy",
"PropertyAlias": "",
"SortOrder": "Ascending",
"ParentTypes": [],
"ItemTypes": [],
"FolderType": ""
}
builder.ContentOrganizer()
.Add<MyCustomContentOrganizer>();
builder.MediaOrganizer()
.Add<MyCustomMediaOrganizer>();