eZ Community » Forums » eZ Publish 5 Platform » eZ Publish 5 and Web Integrators
expandshrink

eZ Publish 5 and Web Integrators

eZ Publish 5 and Web Integrators

Thursday 09 October 2014 10:52:25 am - 11 replies

The release of eZPublish 5 has raised many questions. The fusion between eZ Publish and Symfony is a very good thing, but perhaps not for Web Integrators.

 

In eZ Publish 4 we had easy-to-use tools to fetch content on the templates. All we had to do is using the fetch function.

 

In ez Publish 5 you should know php and develop controllers to do that.

 

I’m myself an Web integrator and i don’t practice php very well. Today i’m forced to ask developers to develop a controller to fetch the content i need on my templates. Before i didn’t need to do that.

 

Twig is quite easy-to-use but symfony is something else … 

 

I thought that eZ Systems or the community would develop some tools to facilitate some tasks, but for now this is not the case.

 

I would like to know if there is other integrators in the same situation and if they also need tools to facilitate some tasks on eZ Publish 5.

Friday 10 October 2014 7:01:34 pm

Hi,

we have definitely discussed both internally and with community how we can make things simpler.

One proposal has been to have several form of listing/tree-listing views that takes filter options as arguments to cover these kind of needs, it would be a rather easy thing to do.

Also discussed re introducing fetch alias so we can provide ready made query factories for things like listing children, also in this case taking some arguments to be able to specify, and then maybe combine this with proposal above so it is based on fetch aliases as means to specify how the query should behave.

Do you see other things we could do to make web development in eZ Publish 5 easier?

Modified on Friday 10 October 2014 7:02:11 pm by André R

Tuesday 14 October 2014 9:45:06 am

Thank you for your answer.

The fetch alias would be very nice, it's my favorite solution.
Do you plan to release this feature for ez 6 ? 

Tuesday 14 October 2014 2:44:09 pm

A set of sitebuilding tutorials and best practices for front end developers would be great.

Also the Query Builder would be of great advantage:

https://github.com/ezsystems/QueryBuilderBundle/blob/master/README.md

Modified on Wednesday 15 October 2014 8:58:36 am by Jani Tarvainen

Wednesday 26 November 2014 1:27:27 pm

Hi Guillaune, hi André, hi Jani,
we are developers / programmers and we love the Symfony way, but we saw this problem for web integrators, too, so we started CjwPublishToolsBundle on Github. This Bundle provides basic templating tools for building websites with eZ Publish 5 similar to eZ Publish 4.
You need for every website a search and human friendly HTML title, a breadcrumb navigation, one or multiple menus, a list of children of a location or a pagination. And you need it fast and easy, in template and in PHP.
It is work in progress and as a base for discussions about good ways to go forward, too. Feel free to use it, to contribute, to discuss, to dispute ...

 

Greetings, ekke

Modified on Wednesday 26 November 2014 1:34:53 pm by Ekkehard Dörre

Friday 28 November 2014 9:32:58 am

@Ekkehard,

Hi, this bundle looks very promising, we are going to try it as soon as possible. Thank you !

Friday 28 November 2014 10:36:06 am

@Guillaume, 

 

nice, we are happy to read your feedback, as said, it is work in progress und everything can be discussed, 

 

greetings, ekke

Thursday 11 December 2014 11:50:26 am

Hello Ekkehard,

I'm trying your bundle but i don't get results from my fetch.

This is how i did my fetch

{% set listChildren = cjw_fetch_content( [location.id], { 'depth': '1', 'limit': 0, 'offset': 0, 'include' : ['folder', 'team'], 'datamap':  true, 'count': true } ) %}

But it doesn't return any result in the dump

array(1) { [68]=> array(3) { ["parent"]=> bool(false) ["children"]=> array(0) { } ["count"]=> int(0) } }

My development platform is eZ Publish 5.4

Modified on Thursday 11 December 2014 11:57:15 am by Guillaume Kempfer

Thursday 11 December 2014 4:26:41 pm

I tested your service on the pagelayout.html.twig and it works.

But when i use it in a block view it didn't work.

It seems that it has an issue with classes.
It only fetch folders.

Modified on Thursday 11 December 2014 5:28:46 pm by Guillaume Kempfer

Thursday 11 December 2014 6:33:47 pm

Well it was a lang issue happy.gif Emoticon

It only fetch current siteacces lang objects

Sunday 21 December 2014 9:43:20 am

Hello there.

We have a plan for this, that involves a customizable Query Controller. You will be able to run predefined queries, and customize a few parameters, a bit like fetch aliases in 4.x.

Thursday 29 October 2015 2:28:42 pm

I used a fetch to render the result with "cjw_render_location".

It worked fine and is really easy, great! Here is my code, running in the pagelayout.tpl:

{% set listChildren2 = cjw_fetch_content( [location.id],
        { 'depth': '1', 'limit': 0, 'include' : ['cjw_folder'], 'datamap':  false, 'count': true } ) %}

{% for item in listChildren2[ location.id ][ 'children' ] %}
    ID: {{  item.contentInfo.id }}, Name: {{  item.contentInfo.name }} <hr>
    {{ cjw_render_location( {'location': item, 'viewType': 'line'} ) }}
{% endfor %}

But one remark: if you set 'datamap' to 'true', then the cjw_render_location is not working.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from