Details

    • 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".

      Attachments

        Activity

          People

            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            damien.pobel-obsolete@ez.no 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