9 mai 2020 à 14h17
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
Depuis : 5.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>
Affichera ceci :
There are no duplicate slugs