There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-4739929d-2ffa-409f-8801-b8aa1f2d534d XWIKI-23450 Open

Provide a kebab case page naming strategy

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-be69568e-5939-472b-8224-06bc4c506d63 Vincent Massol on 13/Aug/25 17:44
 

This strategy will normalize your page names to remove any special characters: only the latin alphabet (26 letters) without accents, the numbers and the character "-" (dash) are accepted. The accents are automatically transformed to the closest latin letter, and all other special characters are transformed to dashes, with some clean up to avoid redundant dashes.

Simon Urli Indeed, I hadn't read it till the end. It seems pretty close smile.png The only thing to add are:

  • the lowercase conversion. It would be even nicer if that could be a configuration option.
  • removal of stop words ('a', 'the', 'when', 'while', 'in', etc).

Could we rename the strategy to "Kebab case strategy" instead of "Preformatted names strategy" which doesn't mean much to me and could be about anything?

Thx

 
cid:jira-generated-image-avatar-be69568e-5939-472b-8224-06bc4c506d63 Vincent Massol on 13/Aug/25 17:44
 
bq. This strategy will normalize your page names to remove any special characters: only the latin alphabet (26 letters) without accents, the numbers and the character "-" (dash) are accepted. The accents are automatically transformed to the closest latin letter, and all other special characters are transformed to dashes, with some clean up to avoid redundant dashes.

[~surli] Indeed, I hadn't read it till the end
(and the name tricked me) . It seems pretty close :) The only thing to add are:
* the lowercase conversion. It would be even nicer if that could be a configuration option.
* removal of stop words  ('a', 'the', 'when', 'while', 'in', etc).

Could we rename the strategy to "Kebab case strategy" instead of "Preformatted names strategy" which doesn't mean much to me and could be about anything?

Thx