Nextcloud version 26
Operating system and version Ubuntu 22.04
PHP version 8
Hello,
I am hoping to Display the Top Level Folder Name Link on Publicly Linked Folder instead of Home Icon Button in Breadcrumbs.
Is there an option somewhere or a coded way to make this possible.
It would also work to have the top level folder link displayed next to the home icon button
You can see what I mean here:
Thanks for any help you can provide.
I figured this out by creating a theme and modifying apps/files/js/breadcrumb.js
I modified this section:
let folderName = document.getElementById("nextcloud").innerHTML;
crumbs.push({
//name: t('files', 'Home'),
name: t('files', folderName),
dir: '/',
class: 'crumbhome',
linkclass: rootIcon || 'icon-home'
});
And added some css to remove home Icon and style text.
#body-public div.crumb > a.icon-home, div.crumb > a.icon-delete, div.crumb > span.icon-home, div.crumb > span.icon-delete {
text-indent: 0px;
background:none;
width:auto;
font-weight: bold;
padding: 12px;
}