Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Doc Explorer "root" not reading from language file
(1 viewing) (1) Guest
Document management system (DMS) component for Joomla!

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Doc Explorer "root" not reading from language file

Doc Explorer "root" not reading from language file 11 years, 7 months ago #39380

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.

JoomDocExplorerrootnamehardcoded.gif



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.

JoomDocExplorerrootnamehardcoded-hacked.gif
Last Edit: 11 years, 7 months ago by bdleavitt. Reason: image got lost
The topic has been locked.

Re: Doc Explorer "root" not reading from language file 11 years, 7 months ago #39406

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, OK, we will fix in the next version.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný