Folder Icon in File manager
Permalink Browser Info Environment
Please could you make this change to the core: change the file manager to use the font awesome folder icon.
(I use this function to ajax files and folders in custom code so the function returns the wrong icon to I will have to change this in the core every time I update to a new version of concrete.)
File concrete/src/Tree/Node/Type/FileFolder.php MODIFIED
line 41 to 46:
$node = TreeNode::getTreeNodeJSON();
if ($node) {
$node->isFolder = true;
+ $node->icon = 'fa fa-folder-o';
$node->resultsThumbnailImg = $this->getListFormatter()->getIconElement();
}
(I use this function to ajax files and folders in custom code so the function returns the wrong icon to I will have to change this in the core every time I update to a new version of concrete.)
File concrete/src/Tree/Node/Type/FileFolder.php MODIFIED
line 41 to 46:
$node = TreeNode::getTreeNodeJSON();
if ($node) {
$node->isFolder = true;
+ $node->icon = 'fa fa-folder-o';
$node->resultsThumbnailImg = $this->getListFormatter()->getIconElement();
}
Type: | Pre-Sale |
---|---|
Status: | New |