continuing work on vanity URLs - next and previous links
Posted: Fri Feb 12, 2010 5:09 pm
I'm back after a break and working on my Vanity URL plugin.
I have the plugin working so that http://www.example.com/blog/clintg displays the users posts. The issue I have now is that the next and previous page URLs are broken.
I end up with a URL like http://www.example.com/blog/clintg/P2.html
How can I change the next and previous links? So I get a proper URL like: http://example.com/blog/authors/5-clintg/P2.html
From looking through the source code it appears that (for the example above) I need to somehow populate $serendipity['uriArguments'] with the values 'authors', and '5-clintg' so that serendipity_printEntryFooter() can generate the proper links to next and previous pages. I try to set them in my plugin but it doesn't seem to have any effect (maybe overwritten later?).
Thanks
Clint
I have the plugin working so that http://www.example.com/blog/clintg displays the users posts. The issue I have now is that the next and previous page URLs are broken.
I end up with a URL like http://www.example.com/blog/clintg/P2.html
How can I change the next and previous links? So I get a proper URL like: http://example.com/blog/authors/5-clintg/P2.html
From looking through the source code it appears that (for the example above) I need to somehow populate $serendipity['uriArguments'] with the values 'authors', and '5-clintg' so that serendipity_printEntryFooter() can generate the proper links to next and previous pages. I try to set them in my plugin but it doesn't seem to have any effect (maybe overwritten later?).
Thanks
Clint