route

  1. P

    XF 2.0 Help with routing parameter

    Hi, I have this routing configuration but when I visit the page I get this: Can someone help? Thanks!
  2. Sim

    XF 2.0 How to build canonical link to an admin route

    How can I generate a canonical link to an admin route using a template function in an email template? For example, in an admin template, {{ link('canonical:tools') }} generates the expected http://example.com/admin.php?tools/ However, in an email template, it assumes a public route and...
  3. CMTV

    XF 2.0 Adding a parameter to route

    Hello! In post_macros template I am adding an action-link (near like link): <a href="{{ link('posts/best', $post, {'thread_id': $thread.thread_id}) }}" class="actionBar-action actionBar-action--mq.is-selected">Best answer</a> Next I extend XF\Pub\Controller\Post.php class and adding...
  4. SNK

    How to create a "double intParams" in a route ?

    Hello, Firstly, I'm French and sorry for my bad english. I want to create a route with two integer, exemple : https://mysite.com/module/first_id/users/second_id/action But I can't do this, for the moment I have : https://mysite.com/module/users/first_id/second_id/action My xenForo's Route ...
  5. Scharesoft

    How to get the current route in actionIndex of ControllerPublic?

    I'm creating an addon for our forum and there I need the current route. I created a new area with the url "tes". There will be sub areas like tes/skyrim or tes/oblivion. Now I need this route (skyrim or oblivion) in my actionIndex of the ControllerPublic php file. Route/Prefix file: class...
Top