Dynamic block not updating unless I edit Frontpage object

Author Message

A Fowler

Friday 12 June 2009 12:07:26 pm

I have a "dynamic" block of front-page articles. Its source is a folder object. It works-- at least, it shows the articles in that folder.

But it is not "dynamic." Whenever I add a new article to that folder, the front page does not show the article until I "Edit" the Home [Frontpage] object. I don't need to actually change anything, only click "Edit" and then "Send for publishing."

The eZ Flow documentation indicates that no such editorial action is required for the contents of a dynamic block to update. What am I missing?

Thanks!

A Fowler

Friday 12 June 2009 12:48:40 pm

If I delete an article from the source folder, it disappears from the front page. The new articles that have been added since the last edit of the Frontpage object, and before the deletion, still do not show up.

A Fowler

Tuesday 23 June 2009 6:07:50 pm

The answer may seem too obvious to some, but it was new to me. I had heard about setting up the cron scripts, and even had mine all done, as directed in one of the online documentation pages. But I didn't know I had to also add ezflow into my crontab. I finally figured this out by tracing back from the eZFlowOperations.update() method to find out when and where it should be called.

So I have this in my crontab now, for future reference for anyone else that may need it. I couldn't find any reference to it in the eZ Flow setup guide, and only vague references in the forums and online documentation.

# The path to the eZ Publish directory
EZPUBLISH_HOME=/path/to/ezpublish

# The location of the PHP command-line interface binary
PHPCLI=/usr/bin/php

# Other cron jobs omitted...

# Instruct cron to run the eZ Flow Update cronjob every minute
* * * * * cd $EZPUBLISH_HOME && $PHPCLI runcronjobs.php -q ezflow 2>&1

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