Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20859

Twig exception trying to generate path to legacy module with no views

    XMLWordPrintable

Details

    Description

      Hi. in the process of migrating my site to symfony stack, i'm using some

      {{ path( 'ez_legacy', { module_uri : ... 
      

      calls. This works well except for legacy modules that don't habe any view, but a only function.

      Here's an extract of my module definition

      $Module = array(
          'name' => 'rss',
          'variable_params' => true,
          'function' => array(
              'script' => 'rss.php',
              'params' => array( 'Feed' ),
              'functions' => array( 'rss' )
          )
      );
      
      $ViewList = array();
      

      Adding

       
      {{ path( 'ez_legacy', { 'module_uri' : 'feeds' }) }}
      

      i get an exepction

      "Legacy module 'feeds' doesn't have any view named ''. Cannot generate URL."
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            desorden desorden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 45 minutes
                3h 45m