Hi,
it is possible to use strictly lowercase urls for all articles instead of the automatic generated case-sensitive ones? We use lowercase urls on the whole site and so it would be nice, when the wiki also uses lowercase urls.
Hi,
it is possible to use strictly lowercase urls for all articles instead of the automatic generated case-sensitive ones? We use lowercase urls on the whole site and so it would be nice, when the wiki also uses lowercase urls.
If you are running VaultWiki 3, you can do this via a plugin. If it works for you, you might want to release it to the community here in our modifications section.
Create a new plugin (AdminCP > Plugins & Products > Add New Plugin).
Product: vBulletin (or your own product)
Hook Location: vault_url_generate
Title: Use Lower-case URLs for Articles
Execute Order: 5
Plugin Code:PHP Code:
$urlinfo['url'] = $this->strtolower($urlinfo['url']);
- lead developer for VaultWiki
Thanks for your quick response, but we're using actually VaultWiki 2.5.
I searched a bit in the code and found the function urlgenerate() in special_class_wiki.php. I added
at the end of the function urlgenerate() and it seems to work now with lowercase urls. Is this a possible solution for v2.5 or can this produce an error somewhere else, for example because of non-matching urls somewhere else?Code:$urlinfo['url'] = strtolower ($urlinfo['url']);
If your 2.5 is before UTF-8 URLs were added, you should not have a problem with this. Otherwise, you should use $this->strtolower over strtolower.
- lead developer for VaultWiki
Bookmarks