zikula-modules/Content

Optimise permalinks for display pages

Closed this issue · 0 comments

Guite commented

Currently permalinks have too much useless prefixes.

  • Introduce new module vars as configuration options:
    • ignoreBundleNameInRoutes [default true]
    • ignoreEntityNameInRoutes [default true]
    • ignoreFirstTreeLevelInRoutes [default true]
  • Clear cache after saving config settings
  • create a custom route loader
  • implement ignoreBundleName
  • implement ignoreEntityName
  • implement ignoreFirstTreeLevel
  • reimplement configurable permalink suffix

Implementation examples:
1. all disabled: /de/content/page/main-page/sub-page/about/our-team
2. ignoreBundleName enabled: /de/page/main-page/sub-page/about/our-team
3. ignoreEntityName enabled: /de/content/main-page/sub-page/about/our-team
4. ignoreFirstTreeLevel enabled: /de/content/page/sub-page/about/our-team
5. all enabled: /de/sub-page/about/our-team