XF 1.2 Route Changer Conditionals

nrep

Well-known member
Is there a simple way that I can create route changer conditionals?

For example, I've got a forum that I'm styling to work as an articles section. However, the URLs are currently the standard thread format.

Instead of having the /threads/ route, I'd like to change this to /articles/ if the thread_id is in a specific node_id. Is there a simple way of doing this, other than manually adding lots of route changes manually?
 

nrep

Well-known member
Thanks for the reply.

Do you happen to know if there are any addons that do something similar to this, or use some of the same methods, so I've got a base to start from?
 

Jeremy

Well-known member
I do not. You may be able to do it with something like XenPorta, but I haven't used or seen an add-on that does it.
 

nrep

Well-known member
Theoretically, if I prefixed the articles with something, i.e. "ARTICLEPAGE" then this would appear in the URL:

/threads/ARTICLEPAGE-Article-Title-Goes Here.57642/

Could I then use the wildcard feature to route this as follows:

/threads/ARTICLEPAGE-{name} -----> /articles/{name}

Would that work?
 

Jeremy

Well-known member
I haven't tested, but I do not believe that would work, no. (I'll probably test later).
 
Top