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

Implement a configurable ContentViewProvider (aka template override system)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0, 5.1
    • Component/s: None

      Description

      Based on individual matchers, like for SiteAccess

      1. Clevertiezp19734Bundle.tar.gz
        2 kB
        Pedro Resende
      2. ezpublish.yml
        16 kB
        Pedro Resende

        Issue Links

          Activity

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

          Ignored old override conditions (not applicable) :

          • view_offset
          • navigation_part_identifier
          • viewmode
          Show
          Jérôme Vieilledent (Inactive) added a comment - Ignored old override conditions (not applicable) : view_offset navigation_part_identifier viewmode
          Hide
          Pedro Resende (Inactive) added a comment -
          Show
          Pedro Resende (Inactive) added a comment - Blocked by -> https://jira.ez.no/browse/EZP-20880
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          [~pedro.resende@ez.no]: I'm sorry, but no this story is not blocked by EZP-20880. The feature does work, the issue you have is completely different and un-related.

          Show
          Jérôme Vieilledent (Inactive) added a comment - [~pedro.resende@ez.no] : I'm sorry, but no this story is not blocked by EZP-20880 . The feature does work , the issue you have is completely different and un-related .
          Hide
          Jérôme Vieilledent (Inactive) added a comment - - edited

          Hi

          Tested with the following :

          ezpublish:
              system:
                  ezdemo_site:
                      location_view:
                          full:
                              article_test:
                                  template: AcmeTestBundle:full:article_test.html.twig
                                  match:
                                      UrlAlias: /Another-test
          

          And it works perfectly... Check that you don't have other rules that take precedence over this one.

          Show
          Jérôme Vieilledent (Inactive) added a comment - - edited Hi Tested with the following : ezpublish: system: ezdemo_site: location_view: full: article_test: template: AcmeTestBundle:full:article_test.html.twig match: UrlAlias: /Another-test And it works perfectly... Check that you don't have other rules that take precedence over this one.
          Hide
          Pedro Resende (Inactive) added a comment -

          Hi,

          just retested with a new bundle named Clevertiezp19734Bundle and a test.html.twig file in the src/Cleverti/ezp19734Bundle/Resources/views/ folder. In my ezpublish.yml file I have the following

          ezpublish:
              siteaccess:
                  default_siteaccess: eng
                  list:
                      - ezdemo_site
                      - eng
                      - ezdemo_site_admin
                      - iphone
                  groups:
                      ezdemo_site_clean_group:
                          - ezdemo_site
                          - eng
                          - ezdemo_site_admin
                          - iphone
                  match:
                      URIElement: '1'
              system:
                  ezflow_site_clean_group:
                      database:
                          type: mysql
                          user: <USER>
                          password: <PASS>
                          server: localhost
                          database_name: <DB>
                      languages:
                          - eng-GB
                      var_dir: var/demo_site
                  eng:
                      location_view:
                          full:
                              article_test:
                                  template: Clevertiezp19734Bundle::test.html.twig
                                  match:
                                      UrlAlias: /Another-test

          I've added a article named Another test to the root node, however it doesn't seems to override when I try to access http://<host>/Another-test or http://<host>/eng/Another-test it simply displays the article.

          Show
          Pedro Resende (Inactive) added a comment - Hi, just retested with a new bundle named Clevertiezp19734Bundle and a test.html.twig file in the src/Cleverti/ezp19734Bundle/Resources/views/ folder. In my ezpublish.yml file I have the following ezpublish: siteaccess: default_siteaccess: eng list: - ezdemo_site - eng - ezdemo_site_admin - iphone groups: ezdemo_site_clean_group: - ezdemo_site - eng - ezdemo_site_admin - iphone match: URIElement: '1' system: ezflow_site_clean_group: database: type: mysql user: <USER> password: <PASS> server: localhost database_name: <DB> languages: - eng-GB var_dir: var/demo_site eng: location_view: full: article_test: template: Clevertiezp19734Bundle::test.html.twig match: UrlAlias: /Another-test I've added a article named Another test to the root node, however it doesn't seems to override when I try to access http://<host>/Another-test or http://<host>/eng/Another-test it simply displays the article.

            People

            • Assignee:
              Unassigned
              Reporter:
              Bertrand Dunogier
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 week, 4 days, 1 hour, 55 minutes
                1w 4d 1h 55m