Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sidy Ndiongue 6 posts 54 karma points
    Aug 25, 2014 @ 23:30
    Sidy Ndiongue
    0

    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,

  • Dan Lister 416 posts 1974 karma points c-trib
    Aug 26, 2014 @ 09:36
    Dan Lister
    0

    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.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 26, 2014 @ 12:04
    Jeroen Breuer
    0

    If you want to use paging with ajax this blog might help: http://24days.in/umbraco/2012/ajax-paging-using-alttemplates/

    Jeroen

  • Sidy Ndiongue 6 posts 54 karma points
    Aug 26, 2014 @ 16:34
    Sidy Ndiongue
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft