Source for file function.category_path.php
Documentation is available at function.category_path.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.v4b_selector_object_array.php 19260 2006-06-12 13:08:15Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Template_Plugins
* - btnText: If set, the results are assigned to the corresponding variable instead of printed out
* <!--[v4b_rbs_getcategory cid="1" assign="category"]-->
$assign = isset ($params['assign']) ? $params['assign'] : null;
$id = isset ($params['id']) ? $params['id'] : 0;
$idcolumn = isset ($params['idcolumn']) ? $params['idcolumn'] : 'id';
$field = isset ($params['field']) ? $params['field'] : 'path';
$html = isset ($params['html']) ? $params['html'] : false;
return 'Required parameter [id] not provided in smarty_function_category_path';
return 'Required parameter [field] not provided in smarty_function_category_path';
if (isset ($cat[$field])) {
return "Category [$id] doesn't have [$field] set in in smarty_function_category_path";
return "No category for id [$id] in smarty_function_category_path";
$smarty->assign($params['assign'], $result);
if (isset ($html) && is_bool($html) && $html) {
|