XF 2.0 nested routing /forums/123/threads/456 easy achievable?

Marcus

Well-known member
I was amazed how easy it was to fetch thread by $post->Thread, is there also an easy way to achieve nested routing? As an example, put all thread routing behind the forum routing:

/threads/456 which belongs to forums/123 would be routed as /forums/123/threads/456
 
It is possible, though it would certainly require an add-on as you'd need to dynamically change at least one route and expose additional things to the thread entity. There is a rough equivalent in the Resource Manager for updates and reviews. As an example, this is the link to a random update: https://xenforo.com/community/resources/s9e-media-bbcodes-pack.2476/update/23035/ You can see it follows the pattern you're referring to.
 
Top Bottom