Giter VIP home page Giter VIP logo

layouts-ezplatform's Introduction

Netgen Layouts & eZ Platform integration

Installation instructions

INSTALL.md

Running tests

Running tests requires that you have complete vendors installed, so run composer install before running the tests.

You can run unit tests by simply calling vendor/bin/phpunit from the repo root. This will use an in memory SQLite database.

You can also run unit tests on a real database. After you create the database, run the tests with:

$ DATABASE=mysql://root@localhost/nglayouts vendor/bin/phpunit

where mysql://root@localhost/nglayouts is a DSN to your MySQL database.

If you use PostgreSQL, you can use the following command:

$ DATABASE=pgsql://user:pass@localhost/nglayouts vendor/bin/phpunit

layouts-ezplatform's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

layouts-ezplatform's Issues

content preview in Netgen Admin UI doesn't work

If you create a layout which relating to the current location of the displayed object
the preview is not shown correctly. All parts which relating to the current location are not shown.
It looks like that the preview not know the current location.

So all dynamic queries relating to the current location will not work correctly in preview :-(
At the moment the preview is useless, if you trying to generate general layouts.

Please fix that - Thank's

[Feature] Finer grained access control based on siteaccess

Being able to restrict a role to mapping to a siteaccess would be useful.

An admin could create the layouts.

Another role could have 'mapping' only permission with siteaccess like limitation so they could assign layouts to their content without the ability to create new layouts.

Error on viewing Layout tab in location full view.

The "Netgen Layouts" tab in location full view gives an error in EzP v3.0.5 / ng-layouts 1.1.4.1

Output from symfony serve:

[Web Server/PHP ] Jun 20 21:17:07 |ERROR| SERVER GET  (500) /admin/nglayouts/ezadmin/layouts/2 ip="::1"
[Application    ] Jun 20 21:17:07 |CRITI| REQUES Uncaught PHP Exception Twig\Error\LoaderError: "Template "@ezdesign/parts/table_header.html.twig" is not defined in "@admin/content/tab/nglayouts/rules.html.twig" at line 3." at /home/stefan/srv/ezplatform/vendor/twig/twig/src/Loader/ChainLoader.php line 99

If i change the include in vendor/netgen/layouts-ezplatform/bundle/Resources/views/themes/admin/content/tab/nglayouts/rules.html.twig and /related_layouts.html.twig to

{% include '@ezdesign/ui/table_header.html.twig' with {
    'header_text': 'rules.title'|trans
} %}

IT does work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.