[TYPO3-dev] FYI Hide icons in list view (extended view enabled)
Tapio Markula
tapio.markula at xetpoint.fi
Fri Mar 7 14:01:08 CET 2008
Dmitry Dulepov [typo3] kirjoitti:
> Hi!
>
> Georg Ringer wrote:
>> I would like to write a patch to be able to hide all of the icons in
>> the extended view. Of course I just could disable the checkbox
>> extended view but I need this one but not all of the icons
>> For that I wanna discuss the syntax which should be used.
>
> <skip>
>
>> mod.web_list.hideIcon.tt_news = new,delete,information
>>
>> What do you think?
contextual menus use instead of 'hideIcon' 'disableItems', for example
options.contextMenu.pageTree.disableItems =
cut,delete,history,perms,edit_access
- it would be nice to have consistent here
mod.web_list.disableItems...
related questions:
1) should that be both common for all record types or specific for
certain record type
#generic
mod.web_list.hideIcon=...
mod.web_list.hideIcon.tt_news=...
2) set the order in general?
something like this
$defaultOrderList='view,history,edit,move,viewBig,version,perms,new_record,moveUp,moveDown,hide,delete,moveLeft,moveRight,locked';
if($this->modTSconfig['properties']['listmoduleMainIconsOrder'])
$orderList=$this->modTSconfig['properties']['listmoduleMainIconsOrder'];
else $orderList=$defaultOrderList;
$orderList = t3lib_div::trimExplode(',',strtolower($orderList),1);
final create icons checking against the order something like
if(isset($cells) && is_array($cells) && is_array($orderList)) {
$orderList=array_flip($orderList);
foreach($orderList as $cellItem => $item) {
if(array_key_exists($cellItem,$cells))
$cellList .= $cells[$cellItem];
}
}
More information about the TYPO3-dev
mailing list