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

Document how to deal with location-less content in twig (preview)

    XMLWordPrintable

Details

    • Sprint 6
    • 2

    Description

      When a newly created content is previewed, it isn't published yet, and therefore doesn't have a location yet.

      The Preview Controller partially covers this by creating a fake location, with a draft flag, ($location.isDraft in twig, that has some of the properties of the future location, like the parent location id.

      However, in some cases, like a link to self, one may use the location id, and get an error. This should be documented.

      Note that using path(location) might provide a better experience, but it should be tested.

      Adding some BDD coverage about preview/draft templating might be a good idea.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: