We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34320
    • 8 Posts
    hello guys!

    im trying to sort of rewrite how the system handle friendly urls
    for that im searching the specific part where the include happens!

    i think revo is doing (pseudo code follwing) something like this:

    lookup the string
    if found {
    display page
    } else {
    point to the page (1 per default or whateva is specificated in the settings)
    }

    and now i wanna find this part to rewrite it to something like this

    lookup the string
    if found {
    display page
    } else if (string is found in my personal database) {
    display page with string as parameter
    } else {
    point to the page (1 per default or whateva is specificated in the settings)
    }

    i hope i was clear enough.
    more or less i just wanna find where the include of the id is happening (so which file in the modx filesystem)

    gretings,
    amsele [ed. note: amsele last edited this post 14 years, 6 months ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      Custom routing is generally accomplished via a Plugin registered OnPageNotFound. If the requested URI is not found as a Resource in MODX, it triggers the sendErrorPage() method which invokes the OnPageNotFound event. Here in your plugin, you can dissect the requested URI and route the request anyway you want, or let it fall through and return a 404.
        • 34320
        • 8 Posts
        thank you!

        exactly what i need. ill give it a try right now

        greetings