Wiki.js

Configurable default icons for new pages and folders

Summary Every page and folder can have its own icon, but there is no way to set a default. A new page or folder always starts with the built-in icon, and has to be changed by hand in the page propert…

Summary
Every page and folder can have its own icon, but there is no way to set a default. A new page or folder always starts with the built-in icon, and has to be changed by hand in the page properties (or the navigation editor) to match the rest of the site. On a wiki with hundreds of pages this is easy to forget, and the menu ends up with a mix of styles.

Current behaviour

Proposal

  1. Site-wide defaults under Admin → Theme or Navigation:
    • default icon for new pages
    • default icon for new folders
    • accepts both MDI names and custom images (img:/_files/...), like the icon picker does today.
  2. Defaults per path, optional and evaluated by longest match, e.g.:
    • pages under /section-a → img:/_files/icons/page-a.svg
    • folders under /section-b/customers → img:/_files/icons/customer.svg
  3. Apply to existing items: a one-off action ("Apply defaults to items still using the built-in icon"), with a preview of how many pages and folders it will change. Items with a manually chosen icon are left alone.
  4. The page properties dialog shows the inherited default, with an option to override it.

Why