Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-6875

As a Developer I want IsPreview View Matcher

    XMLWordPrintable

Details

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • 4.6.0
    • 4.6.x-dev
    • Open Source

    Description

      Let's say we have 2 views of the same View Type but we need to get them matched depending on if it's a content preview or view. Currently we need to use different view types in that case.

      Proposing the new IsPreview: true|false View Matcher for the following sample configuration context:

      ibexa:
        system:
          default:
            content_view:
              app:
                my_view:
                  template: '@ibexadesign/app/my_view.html.twig'
                  match:
                    Identifier\ContentType: [ my_content_type ]
                    IsPreview: false
      
                my_preview:
                  template: '@ibexadesign/app/my_preview.html.twig'
                  match:
                    Identifier\ContentType: [ my_content_type ]
                    IsPreview: true
      

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              andrew.longosz@ibexa.co Andrew Longosz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: