I am working on migrating my site from Wordpress to Umbraco. So far it is going well except I want to implement pagenation like this: somedomain.com/somecategory/page/2 instead of somedomain.com/somecategroy?p=2. Does anyone have any tips?
I've not used them personally but it sounds like you could use IContentFinder to implement nice pagination urls. For example, if your url ends in a page number, find the content of the parent page (somedomain.com/somecategory/page). Within your template, you could then look at the requested url and grab the page number.
After watching this tutorial I found how to implement pagination but with "ugly" urls, ex. "?page=2". Then I found that Umbraco has a url rewrite module that is suited to rewriting the "?page=2" to "/page/2". What is the difference with the Umbraco url rewrite module and the built in IIS one.
Pagenation with "clean" url's
Hi,
I am working on migrating my site from Wordpress to Umbraco. So far it is going well except I want to implement pagenation like this: somedomain.com/somecategory/page/2 instead of somedomain.com/somecategroy?p=2. Does anyone have any tips?
Thanks,
Hi Sidy,
I've not used them personally but it sounds like you could use IContentFinder to implement nice pagination urls. For example, if your url ends in a page number, find the content of the parent page (somedomain.com/somecategory/page). Within your template, you could then look at the requested url and grab the page number.
Thanks, Dan.
If you want to use paging with ajax this blog might help: http://24days.in/umbraco/2012/ajax-paging-using-alttemplates/
Jeroen
Hi,
Thanks for your responses.
After watching this tutorial I found how to implement pagination but with "ugly" urls, ex. "?page=2". Then I found that Umbraco has a url rewrite module that is suited to rewriting the "?page=2" to "/page/2". What is the difference with the Umbraco url rewrite module and the built in IIS one.
Thanks in advance.
is working on a reply...