eZ Community » Forums » eZ Platform » Sharing some code with everyone
expandshrink

Sharing some code with everyone

Sharing some code with everyone

Friday 30 September 2016 12:30:17 pm

Hi,

I developed this Symfony Bundle to have some Twig operators that I think will be helpful to all of eZPlatform developers. I wanted to have the content and location within Twig template without having to create a php class (QueryType)

In practice I have reintroduced the command "fetch" (renamed "fetch_content" or "fetch_location"blunk.gif Emoticon as there is in eZpublish to use directly in Twig files without doing anything else. I also created a template operator ("yaml_load"blunk.gif Emoticon to read any YAML file directly from Twig file (it emulates ezini function there is in eZPublish).

Please check examples of use in doc folder.

The bundle can be downloaded from the link: https://github.com/garzettone/VisionovaEzTwigHelperBundle

It's free for all the world.

 

07-10-2016 Update:

Because it violates the MVC principle I decided to remove.

Thanks.

Modified on Friday 07 October 2016 11:21:35 am by Davide Garzetti

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from