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

Re-Instantiate Symfony's app/Resource folder

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2015.11.2
    • Component/s: None

      Description

      A standard symfony installation contains an app/Resource folder, allowing to finally override any resources from Bundles. I don't know the reason why eZ has chosen not to implement this logic - there is no ezpublish/Resource folder and creating one does not suffice to re-instantiate the behaviour.

      As an application developer I need this functionality badly. I see no other way to override bundle resources as this was possible with the legacy extension logic.

        Activity

        Hide
        Donat Fritschy added a comment - - edited

        According to https://confluence.ez.no/pages/viewpage.action?pageId=2720567, ezpublish/Resource is supported.

        A test with 2013.06 revealed that this is true. To override the pagelayout of the demo bundle, you would set up the directory structure as follows (note the bundle name):

        ezpublish
          Resources
            eZDemoBundle
              view
                pagelayout.html.twig
        

        It would certainly make sense to add this to the documentation.

        Show
        Donat Fritschy added a comment - - edited According to https://confluence.ez.no/pages/viewpage.action?pageId=2720567 , ezpublish/Resource is supported. A test with 2013.06 revealed that this is true. To override the pagelayout of the demo bundle, you would set up the directory structure as follows (note the bundle name): ezpublish Resources eZDemoBundle view pagelayout.html.twig It would certainly make sense to add this to the documentation.
        Hide
        Bertrand Dunogier added a comment -

        This has been fixed in 2015.11.2 (https://github.com/ezsystems/ezplatform/pull/70).

        Show
        Bertrand Dunogier added a comment - This has been fixed in 2015.11.2 ( https://github.com/ezsystems/ezplatform/pull/70 ).

          People

          • Assignee:
            Unassigned
            Reporter:
            Donat Fritschy
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: