This seems like a simple fix that must have fallen through the cracks. (It appears to have been previously solved:
www.artio.net/support-forums/joomdoc/cus...folder-from-joomdocs). But I can't seem to be able to change the "root' folder name in the JoomDoc explorer. I've tried in the component Options, I've tried updating the language files.
I am using:
- JoomDoc Version 3.4.4 Pro
- Joomla 2.5.9
Investigating Further:
It looks like the text "JoomDoc" is actually hard coded to be JoomDoc. In [site root]/administrator/components/com_joomdoc/libraries/html/joomdoc.php on line 122
{text: '" . ($parent ? $parent : '
JoomDOC') . "', open: true, data: {url: '" . JRoute::_(JoomDOCRoute::viewDocuments($mainframe->isSite() ? $parent : '
JoomDOC'), false) . "', target: 'folderframe'}}
Here's what the surrounding code looks like.
// start MooTree after completely loading page
$js = "
window.addEvent('domready', function() {
var tree = new MooTreeControl(
{div: 'MooTree', mode: 'folders', grid: true, theme: '" . htmlspecialchars(JURI::root(true), ENT_QUOTES) . "/media/system/images/mootree.gif', onClick:
function(node) { // event after click on folder
window.location = node.data.url;
}
},
{text: '" . ($parent ? $parent : 'JoomDOC') . "', open: true, data: {url: '" . JRoute::_(JoomDOCRoute::viewDocuments($mainframe->isSite() ? $parent : 'JoomDOC'), false) . "', target: 'folderframe'}}
);
tree.adopt('MooTreeSrc'); // load source in ul structure
tree.selected = tree.get('node_" . htmlspecialchars(str_replace(DS, '-', $path), ENT_QUOTES) . "');
";
if ($path)
$js .= "
tree.get('node_" . htmlspecialchars(str_replace(DS, '-', $path), ENT_QUOTES) . "').selected = true;
";
If I change the two instances of "JoomDOC" to "Documents" (or whatever I want) the change will be displayed. Please update the code to use the JOOMDOC_ROOT value or create a new language string that can control this. I hate to have to hack the code every time there is an update.