XF 1.3 Route Filter for Pages

Chimpie

Well-known member
Is it possible to create a route filter so that when I create a custom page, it can just be domain.com/test-page instead of domain.com/pages/test-page?

I read the help page and thought I had it set up right but I guess not.
 

Attachments

  • route-filter.webp
    route-filter.webp
    20.3 KB · Views: 13
Thanks. So this will have to be set up for each individual page I want to operate this way, correct? There's no way for this to be done for all pages.
 
Actually, it can be automated slightly but yeah, you certainly can't remove the route completely.

Let's say you were producing a manual using XenForo pages.

You'd maybe have:

Introduction
Installation
Configuration
Support

Without Route Filters, you would probably have a URL structure like this:

/pages/manual-introduction/
/pages/manual-installation/
/pages/manual-configuration/
/pages/manual-support/

So, if you then set up a Route Filter like this:

upload_2014-7-28_22-43-35.webp

Those URLs would become:

/manual/introduction/
/manual/installation/
/manual/configuration/
/manual/support/

The beauty is, because that finds only pages/manual-{name}/ it means you can set up others, or even have pages that still use the pages route.
 
Back
Top Bottom