eZ Community » Forums » Extensions » eZ Flow » Performance improvements in EZ FLOW
expandshrink

Performance improvements in EZ FLOW

Performance improvements in EZ FLOW

Saturday 14 April 2012 5:08:15 pm - 3 replies

OK maybe someone can help me happy.gif Emoticon

 

I have this problem with a site:

we want to optimize it as it is grabbing to much resources from server.

They have multiple subfolders, one frontpage.

They need the frontpage to show the latest content no matter the subfolder where it was created.

Tried Dynamic content but it only grabs one Source not multiple source.

Tried Manual but it takes forever to find the contents, they want to have the frontpage almost maintainance free (its a good idea to dont let all editor modify frontpage).

Any ideas?

Thanks.

Sunday 15 April 2012 8:45:27 pm

If you use a dynamic block "latest contents", setting the parent node to the homepage, it might work - I'm just not sure about the depth that it will scan when looking for modified content.

If none of the available blocks suit you, it should be trivial to create a new one for your needs...

Tuesday 24 April 2012 11:16:55 am

You can create an new override block that fetch everything based on certain folder.

Example:

 

block.ini
[General]
AllowedTypes[]=ItemList
 
 
[Frontpage_zone1]
AllowedTypes[]=ItemList
 
 
[ItemList]
Name=Itemlist
NumberOfValidItems=3
NumberOfArchivedItems=5
ManualAddingOfItems=enabled
ViewList[]=itemlist1
ViewList[]=itemlist2
ViewName[itemlist1]=Selected items
ViewName[itemlist2]=Folder listing
override/templates/block/itemlist.tpl
{def
$limit = 10
$depth = 15
}
{foreach $block.valid_nodes as $list_item max $limit}
<span> </span>{def $list_items=fetch( 'content', 'list', hash( 'parent_node_id', $list_item.node_id,'depth',$depth,    <span> </span> 'sort_by', array( <span> </span>'attribute', false()) ))}
<span><span style="white-space: pre;"> </span> </span>{foreach $list_items as $list_item max $limit}
<span><span style="white-space: pre;">  </span> </span>{$list_item.name}
<span><span style="white-space: pre;"> </span> </span>{/foreach}
{/foreach}
override.ini
[myfrontpage_itemlist]
Source=block/view/view.tpl
MatchFile=block/itemlist.tpl
Subdir=templates
Match[type]=ItemList

Modified on Tuesday 24 April 2012 11:17:54 am by Stephan Csorba

Wednesday 29 August 2012 9:00:26 pm

I was checking my never replied thanks...

I have to thank Gaetano and Stephan.

We have created a block like that and it works. Thanks a lot.

expandshrink

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

36 542 Users on board!

Forums menu