today I want to introduce my biggest and most powerful module until today: ProcessPermalink.
The main function is to change URLs of pages so that you can customize the pages URLs (e.g.: http://example.com/article/abc/ -> http://example.com/2011/10/10/abc/). You can set a separate URL formats for each template under "Your Template -> URLS -> Permalink Format". For this, you can use the following placeholders (I'll add some more in the future): %name%, %author%, %id%, %year%, %month%, %day%, %hour%, %minute% and %second%.
It's not perfect right now but it's working. Unfortunately you have to do two core hacks to make some core functions hookable:
- Change "buildEditFormURLs" to "___buildEditFormURLs" in line 916 of "wire/modules/Process/ProcessTemplate/ProcessTemplate.module"
- Change "path" to "___path" in line 865 of "wire/core/Page.php"
Another problem is that you have to add a URL format to every existing template and to every template you'll create in the future.
And something that will probably be missed right now is %parents% (and maybe something like %default%) but I'm working on it.
But I would be happy if you could try it out and report errors to me so that I can optimize it.
You can download it here: https://github.com/N...rocessPermalink
Hope it will work for you!