cron-eu/cron-sluggy
最新稳定版本:2.0.1
Composer 安装命令:
composer require cron-eu/cron-sluggy
包简介
Slug re-generator
README 文档
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/typo3 sluggy:regenerate [-d|--dry-run] [-r|--redirects [REDIRECTS]] [-f|--format [FORMAT]] [--] <root-page> <language>
-d, --dry-run do not change anything
-r, --redirects[=REDIRECTS] create redirects for changed slugs with this TTL in days
• [default: 30]
-f, --format[=FORMAT] print output as "plain", "csv" or "html"
• [default: "plain"]
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-run -- 420
统计信息
- 总下载量: 1.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-11-02