route

  1. Earl

    XF 2.2 help with implementing new XenForo content vote system to an add-on, build link, route

    I have vote_count and vote_score columns on my new suggestion entity's table which uses ContentVoteTrait;. Then again it calls static::addVotableStructureElements($structure); from the inside of public static function getStructure(Structure $structure){....} I don't know why these vote_count...
  2. B

    XF 2.1 redirecting old site urls to new urls by addon controller

    hi i need redirect my old site urls to new urls example : www.oldsite.com/articles/title/id to www.newsite.com/threads/title.id/ i added a simple controller class oldtonew extends AbstractController { public function actionIndex(ParameterBag $params) { $url =...
  3. 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!
  4. 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...
  5. 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...
  6. 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 ...
  7. 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