Skip to content

ljfio/Umbraco-Otto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>();

About

Auto Organizer for Umbraco

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages