Details

    • Story Points:
      1

      Description

      In a pagelayout of the legacy system, we have access to some variables that allow to easily retrieve basics informations like $site.title or $current_user.

      It would be nice have the same thing in Twig through a global variable ezpublish and it would even be nicer to expose the legacy variables in ezpublish.legacy for instance.

        Activity

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

        Joao: it's perfectly normal that the dump function only works using dev environment since the debug extension is only active when in debug mode (it's in Symfony core). Regarding the site name, it's Not implemented yet, only accessible when viewing legacy views.

        Regarding ezpublish.legacy, variables from there are ONLY available when in legacy fallback (no view template defined in the new stack).

        Show
        Jérôme Vieilledent (Inactive) added a comment - Joao: it's perfectly normal that the dump function only works using dev environment since the debug extension is only active when in debug mode (it's in Symfony core). Regarding the site name, it's Not implemented yet, only accessible when viewing legacy views. Regarding ezpublish.legacy, variables from there are ONLY available when in legacy fallback (no view template defined in the new stack).
        Hide
        Joao Pingo (Inactive) added a comment - - edited

        The ezpublish.siteName variable is not implemented yet, but is documented as a valid global variable ...

        Show
        Joao Pingo (Inactive) added a comment - - edited The ezpublish.siteName variable is not implemented yet, but is documented as a valid global variable ...
        Hide
        Jérôme Vieilledent (Inactive) added a comment -

        Joao Pingo: Documentation fixed.

        Show
        Jérôme Vieilledent (Inactive) added a comment - Joao Pingo : Documentation fixed.
        Hide
        Jérôme Vieilledent (Inactive) added a comment -

        Fixed

        Show
        Jérôme Vieilledent (Inactive) added a comment - Fixed
        Hide
        Pedro Resende (Inactive) added a comment -

        [~jerome.vieilledent@ez.no]: Thanks

        Show
        Pedro Resende (Inactive) added a comment - [~jerome.vieilledent@ez.no] : Thanks

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Agile