Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
今日作成された記事のみを取得するように、新しいモジュール (mod_latest_news から派生) の記事の ContentModel に条件を追加するにはどうすればよいですか。helper.phpモジュールのファイルに以下を追加しようとしました:
helper.php
// Date must where created today $model->setState('a.created', date('Y-m-d'));
しかし、それは役に立たないようです。私は何か間違ったことをしていますか?
試す
$model->setState('filter.date_filtering', 'relative'); $model->setState('filter.relative_date', 1);