Need help with block "Latest content"

Need help with block "Latest content"

Wednesday 06 July 2011 4:59:36 am - 2 replies

Author Message

Frédéric Méance

Thursday 07 July 2011 3:06:43 am

In fact, I have the same problem with the blocks "keywords" and "3 items (dynamic)".
When I run the cronjob I have this error:
[code] Warning: Invalid argument Supplied for foreach () in xxxxxx\extension\ezflow\ classes\fetches\ezflowlatestcontent.php on line 68 [/code]
Error due to the fact that eZContentObjectTreeNode: subTreeByNodeID returns nothing !
FYI, I installed ezflow 2.3 in case the problem would come to version 2.2
Cdt
Fred

Frédéric Méance

Friday 08 July 2011 2:00:05 am

Hello everyone,
And now, it works. In fact, I made several mistakes. Here is the list of my mistakes :
- In the block type Latest_Content, you had to set the class of objects displayed (this is not an optional parameter !)
- The block type Latest_Content must be published before the content that is uploaded.Example, if you delete the contents of the block Latest_Content and restart cronjob ezflow (assuming the block scans a Folder containing items), well it will happen nothing.
- FetchFixedParameters [Limit]. The query executed makes an ORDER BY ASC on the publication date (from oldest to newest) => if the limit is lower than the number of items, the latest will not be displayed ...
Regards
Fred

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.