cron-eu / cron-sluggy
Slug re-generator
Installs: 993
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- ext-pdo: *
- typo3/cms-core: ^9.5 || ^10.4 || ^11.5
This package is auto-updated.
Last update: 2024-11-16 20:09:36 UTC
README
Features:
- Batch regeneration of page slugs CLI tool
- Add an "URL path segment" field to overwrite the string that would be generated from the page title (supports b13/masi exclude while doing that)
- Option to remove slash ("/") from being added to a slug segment for a page
Regenerates Slugs for a whole subtree of pages, optionally generate redirect for changed slugs.
Installation
Configure settings in Extension Configuration:
slash_remove
(boolean): defaults to "1", if you want to remove slashes from page url slugsenable_pathsegment
(boolean): defaults to "1" to add a new field to the pages module where you can overwrite the URL segment for this page (like RealURL used to have)pages_slugfields
(string): comma separated list of fields to consider when creating the slug for a page (defaults totx_cronsluggy_pathsegment,title
).
Usage
bin/typo3cms sluggy:regenerate [-d|--dry-mode] [-r|--redirects [REDIRECTS]] [--] <root-page>
-d, --dry-mode do not change anything
-r, --redirects[=REDIRECTS] create redirects for changed slugs with this TTL in days
• [default: 30]
Examples
New slugs for all pages starting at root page 420, and create redirects:
bin/typo3cms sluggy:regenerate -r -- 420
New slugs for all pages starting at root page 420, and create redirects which expire in 10 days:
bin/typo3cms sluggy:regenerate -r 10 -- 420
Just show slugs for pages starting at root page 420 which would be created
bin/typo3cms sluggy:regenerate --dry-mode -- 420