[xwiki-users] $util.clearName filters spaces
Hi, The function $util.clearName "Cleans up the passed text by removing all accents and special characters to make it a valid page name." It removes spaces from names, as demonstrated in the FAQ tutorial [1]. Removing spaces is a bit too much for my taste; I've resorted to using $util.clearAccents to filter page names (also replacing periods with commas!). I hope the users of my wiki won't find illicit uses/breaking page names. Are there better alternatives? I agree using spaces can make it difficult to access URLs, but the page names become far clearer. Cheers, Joris
Hi Joris, On Jul 11, 2012, at 12:16 PM, Joris Dirks wrote:
Hi,
The function $util.clearName "Cleans up the passed text by removing all accents and special characters to make it a valid page name." It removes spaces from names, as demonstrated in the FAQ tutorial [1]. Removing spaces is a bit too much for my taste; I've resorted to using $util.clearAccents to filter page names (also replacing periods with commas!). I hope the users of my wiki won't find illicit uses/breaking page names. Are there better alternatives?
I agree using spaces can make it difficult to access URLs, but the page names become far clearer.
We had this because in the past we were not supporting special characters in page names. This is no longer the case and we're moving away from any restriction for page names. If you're on a recent version (say 3.5 or later for example) you should have no problem with special chars in page names. Try it and let us know how it goes! Thanks -Vincent
Well this leads to a question on my side: isn't there still a problem with certain characters in page names that cause the watchlist feature to get buggy? I remember that (iirc) apostrophs in page names causes problems when trying to show all watched pages on the profile - the list simply stays empty. Is this bug solved yet? Am 11.07.2012 um 20:21 schrieb Vincent Massol <[email protected]>:
Hi Joris,
On Jul 11, 2012, at 12:16 PM, Joris Dirks wrote:
Hi,
The function $util.clearName "Cleans up the passed text by removing all accents and special characters to make it a valid page name." It removes spaces from names, as demonstrated in the FAQ tutorial [1]. Removing spaces is a bit too much for my taste; I've resorted to using $util.clearAccents to filter page names (also replacing periods with commas!). I hope the users of my wiki won't find illicit uses/breaking page names. Are there better alternatives?
I agree using spaces can make it difficult to access URLs, but the page names become far clearer.
We had this because in the past we were not supporting special characters in page names. This is no longer the case and we're moving away from any restriction for page names.
If you're on a recent version (say 3.5 or later for example) you should have no problem with special chars in page names.
Try it and let us know how it goes!
Thanks -Vincent _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi, On Jul 11, 2012, at 8:25 PM, Moritz Hesse (EA GmbH) wrote:
Well this leads to a question on my side: isn't there still a problem with certain characters in page names that cause the watchlist feature to get buggy? I remember that (iirc) apostrophs in page names causes problems when trying to show all watched pages on the profile - the list simply stays empty. Is this bug solved yet?
I don't know for sure (I don't remember this issue) but if you find an issue with some character please raise an issue on http://jira.xwiki.org since it's supposed to work fine. Thanks -Vincent
Am 11.07.2012 um 20:21 schrieb Vincent Massol <[email protected]>:
Hi Joris,
On Jul 11, 2012, at 12:16 PM, Joris Dirks wrote:
Hi,
The function $util.clearName "Cleans up the passed text by removing all accents and special characters to make it a valid page name." It removes spaces from names, as demonstrated in the FAQ tutorial [1]. Removing spaces is a bit too much for my taste; I've resorted to using $util.clearAccents to filter page names (also replacing periods with commas!). I hope the users of my wiki won't find illicit uses/breaking page names. Are there better alternatives?
I agree using spaces can make it difficult to access URLs, but the page names become far clearer.
We had this because in the past we were not supporting special characters in page names. This is no longer the case and we're moving away from any restriction for page names.
If you're on a recent version (say 3.5 or later for example) you should have no problem with special chars in page names.
Try it and let us know how it goes!
Thanks -Vincent
participants (3)
-
Joris Dirks -
Moritz Hesse (EA GmbH) -
Vincent Massol