Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
hfpfetchrandom | Brookins Consulting | stable |
Version | Compatible with |
---|---|
N/A | N/A |
Fetches the random children of a node or a collection of nodes.
LIU Bin bin.liu@lagardere-active.com
Hfp Fetch Random is licensed under the GNU General Public License.
The complete license agreement is included in the LICENSE file.
Hfp Fetch Random is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License or at your
option a later version.
Hfp Fetch Random is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU GPL gives you the right to use, modify and redistribute
Hfp Fetch Random under certain conditions. The GNU GPL license
is distributed with the software, see the file doc/LICENSE.
It is also available at http://www.gnu.org/licenses/gpl.txt
You should have received a copy of the GNU General Public License
along with Hfp Fetch Random in doc/LICENSE. If not, see http://www.gnu.org/licenses/.
Using Hfp Fetch Random under the terms of the GNU GPL is free (as in freedom).
For more information or questions please contact: license@brookinsconsulting.com
The following requirements exists for using Hfp Fetch Random extension:
This solution provides the following:
Run the following command from your project root to install the extension:
bash$ composer require brookinsconsulting/hfpfetchrandom dev-master;
Activate this extension by adding the following to your settings/override/site.ini.append.php:
[ExtensionSettings]
#
ActiveExtensions[]=hfpfetchrandom
Regenerate autoloads (Required).
php ./bin/php/ezpgenerateautoloads.php;
Clear eZ Publish Platform / eZ Publish Legacy caches (Required).
php ./bin/php/ezcache.php --clear-all;
There are currently no configuration required.
The solution is configured to work virtually by default once properly installed.
fetch( 'hfpfetchrandom', 'list',
hash( 'parent_node_id', parent_node_id,
[ 'offset', offset, ]
[ 'limit', limit, ]
[ 'attribute_filter', attribute_filter, ]
[ 'extended_attribute_filter', extended_attribute_filter, ]
[ 'class_filter_type', class_filter_type, ]
[ 'class_filter_array', class_filter_array, ]
[ 'only_translated', only_translated, ]
[ 'language', language, ]
[ 'main_node_only', main_node_only, ]
[ 'as_object', as_object, ]
[ 'depth', depth, ]
[ 'limitation', limitation ]
[ 'ignore_visibility', ignore_visibility ] ) )
An array of ezcontentobjecttreenode objects or FALSE.
The following example hfpfetchrandom, list fetch usage fetches three folder node objects randomly.
{def $tests = fetch( 'hfpfetchrandom', 'list', hash( 'parent_node_id', 2,
'offset',0,
'limit',3,
'class_filter_type', 'include',
'class_filter_array', array('folder')
) )}
{foreach $tests as $test}
{$test.name}
{/foreach}
Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md
If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact