Sylvain Gogel
|
Friday 04 December 2009 1:29:35 pm
How can i fetch 10 content nodes against multiple keywords (with an OR)? The fetch content keyword operator does not looks like supporting this feature
<span class="line">fetch( 'content', 'keyword',</span>
<span class="line"> hash( 'alphabet', alphabet,</span>
<span class="line"> [ 'strict_matching', strict_matching, ]</span>
<span class="line"> [ 'classid', classid, ]</span>
<span class="line"> [ 'offset', offset, ]</span>
<span class="line"> [ 'limit', limit, ]</span>
<span class="line"> [ 'owner', owner, ]</span>
<span class="line"> [ 'parent_node_id', parent_node_id, ]</span>
<span class="line"> [ 'include_duplicates', include_duplicates, ]</span>
<span class="line"> [ 'sort_by', sort_by ] ) )</span> thanks
--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony
|
Bertrand Dunogier
|
Saturday 05 December 2009 4:19:44 am
Simple answer: use eZ find. You could also perfectly do it with a custom fetch function, I think, but the result would be better, to the cost of less performances, using eZ find.
Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier
|
Sylvain Gogel
|
Tuesday 08 December 2009 1:31:48 pm
Good hint, i switch my original design to use moreLikeThis fetch, handy fast and kewl ^^ Anyway Tagcloud are lame ^^
--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony
|