Details

    • Sprint:
      Aconcagua Sprint 4

      Description

      I read page https://confluence.ez.no/display/EZP/Legacy+code+and+features

      So, I run a page with non legacy siteaccess.

      My template:

       
      {% block content %}
          {{ render( url('content/view/sitemap/2') ) }}
      {% endblock %}
      
      

      When running page,the error appeared:

      An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'content/view/sitemap/2' not found" in TmnTgkmBundle::legacy.html.twig at line 5.

      Some information:

      • My controller inherits eZ\Bundle\EzPublishCoreBundle\Controller
      • My action function very simple:

      public function homeAction()
      {
          return $this->render( "TmnTgkmBundle::legacy.html.twig" );
      }
      

      My question is why sub-request {{ render( url('content/view/sitemap/2') ) }} don't work ? Is the documentation written in principle, not in practice ?

        Activity

        Hide
        Jérôme Vieilledent (Inactive) added a comment -

        Hi

        The syntax you use is wrong (doc issue).
        You should use instead:

        {{ render( url( 'ez_legacy', {'module_uri': '/content/view/sitemap/2'} ) ) }}

        Just fixed the documentation.

        However there is still an issue since the rendered sub-request is not correct (it will render the same page you're currently on). So still investigating.

        Show
        Jérôme Vieilledent (Inactive) added a comment - Hi The syntax you use is wrong (doc issue). You should use instead: {{ render( url( 'ez_legacy', {'module_uri': '/content/view/sitemap/2'} ) ) }} Just fixed the documentation. However there is still an issue since the rendered sub-request is not correct (it will render the same page you're currently on). So still investigating.
        Show
        Jérôme Vieilledent (Inactive) added a comment - https://github.com/ezsystems/ezpublish-kernel/pull/470
        Show
        Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/885bc594d162d176858a94e43e1fb87289473279
        Hide
        Joao Pingo (Inactive) added a comment -
        Show
        Joao Pingo (Inactive) added a comment - Link for Documentation: https://confluence.ez.no/display/EZP/Legacy+code+and+features
        Hide
        Joao Pingo (Inactive) added a comment -

        Documentation Reviewed and tested on Master tc-1754
        Test Passed .. QA Done

        Show
        Joao Pingo (Inactive) added a comment - Documentation Reviewed and tested on Master tc-1754 Test Passed .. QA Done

          People

          • Assignee:
            Unassigned
            Reporter:
            Nguyen Tien Hy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 hours Original Estimate - 4 hours
              4h
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 day, 2 hours
              1d 2h

                Agile