9th May 2020 at 2:17pm
purpose | find titles that yield duplicate slugs |
---|---|
input | a selection of titles |
output | input titles that yield duplicate slugs |
Learn more about how to use Filters
Introduced in v5.1.23 The slugify
operator can be used to transform arbitrary tiddler titles into human readable strings suitable for use in URLs or filenames. However, it is possible for multiple different titles to slugify to the same string. The duplicateslugs
operator can be used to display a warning. For example:
<$list filter="[!is[system]duplicateslugs[]limit[1]]" emptyMessage="There are no duplicate slugs">
The following tiddlers have duplicate slugs:
<ul>
<$list filter="[!is[system]duplicateslugs[]]">
<li><$link><$text text=<<currentTiddler>>/></$link></li>
</$list>
</ul>
</$list>
That renders as:
There are no duplicate slugs