Details

    • Sprint:
      Stetind Sprint 4, Stetind Sprint 5

      Description

      We need to generate "template" URL for the javascript code something like /content-type/edit/12/

      {languageCode}/{fromLanguageCode}

      path( "ezpublish_admin_content_type_edit_translate", {'typeId': contentType.id, 'languageCode': '{languageCode}

      ', 'fromLanguageCode': '

      {fromLanguageCode}'} )
      generates
      /content-type/edit/1/%7BlanguageCode%7D/%7BfromLanguageCode%7D

      which is not suitable.

      So we need a js_template_path() function would generate the template url.
      Example:

      js_template_path( "ezpublish_admin_content_type_edit_translate", {'typeId': contentType.id } )
      generates
      /content-type/edit/12/{languageCode}/{fromLanguageCode}

      ie it replaces the given parameters like path() and for the missing parameters, the URL is generated with the "placeholder".

        Issue Links

          Activity

          Show
          Damien Pobel (Inactive) added a comment - The goal is to avoid this: https://github.com/ezsystems/AdminBundle/commit/78e228252a12c2d7d7b513134766c8c24f4dd2bb#L5R222

            People

            • Assignee:
              Damien Pobel (Inactive)
              Reporter:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 7 hours
                1d 7h

                  Agile