Hi,
I'm trying to add the k_up_down field to the manage folders area of a particular template.
so far i've created a content_list_inner_folders__folder_shop-php.html which targets the particular template, but i cannot figure out how to add the k_up_down field selectively and get it to work.
I've tried adding it to the defaults in edit-folders.php:
Which adds the column (but to all templates). But does not function.
Which led to investigating the _updown_handler, which doesn't exists in KFoldersAdmin class.
So,
1 - is it possible at all?
2 - can the field be added selectively (per template) in some way?
3 - if i have a go at the handler any pointers?
thanks to all and any
I'm trying to add the k_up_down field to the manage folders area of a particular template.
so far i've created a content_list_inner_folders__folder_shop-php.html which targets the particular template, but i cannot figure out how to add the k_up_down field selectively and get it to work.
I've tried adding it to the defaults in edit-folders.php:
- Code: Select all
function _default_list_fields(){ global $FUNCS; $arr_fields = array(); // other fields removed for brevity $arr_fields['k_up_down'] = array( 'weight'=>'40', 'header'=>' ', 'class'=>'up-down', 'content'=>"<cms:render 'list_updown' />", 'sortable'=>'0', 'sort_name'=>'weight', 'listener'=>array( 'pages_list_post_action', array($this, '_updown_handler') ), ); // other fields removed for brevity return $arr_fields;
Which adds the column (but to all templates). But does not function.
Which led to investigating the _updown_handler, which doesn't exists in KFoldersAdmin class.
So,
1 - is it possible at all?
2 - can the field be added selectively (per template) in some way?
3 - if i have a go at the handler any pointers?
thanks to all and any
