Plugin Author
ulfben
(@ulfben)
You never work with the minified javascript (.min.js). Edit the PHP to load the human-readable one and work in that instead.
Good luck!
thanks for the clear up !
which php file should I try to modify ?
I absolutely do not see where in the php file I can set the img after the link in a dtNode div
to me it seems it can only be changed in the js file around line 194
but just moving the code between lines 197-203
if(this.config.useIcons){
if(!node.icon) node.icon = (this.root.id == node.pid) ? this.icon.root : ((node._hc) ? this.icon.folder : this.icon.node);
if(!node.iconOpen) node.iconOpen = (node._hc) ? this.icon.folderOpen : this.icon.node;
if(this.root.id != node.pid){
str += '<img id="i' + this._objName + nodeId + '" src="' + ((node._io) ? node.iconOpen : node.icon) + '" alt="" />';
}
}
after line 224 (just before str += ' </div>';
) doesn’t seem to do anything… I’m lost here
please advise
Plugin Author
ulfben
(@ulfben)
Okay. Let’s try this again.
The PHP file controls which javascript file is being used on your site. Editing the wp-dtree.js
doesn’t make a difference, as the plugin only ever use the minified version; wp-dtree.min.js
Since we can’t work with a minified script you have to edit wp-dtree.php
to use wp-dtree.js
first. Then edit that script.
I actually copied wp-dtree.js into wp-dtree.min.js so I could edit it more easily
I still have no idea how I can put the icons on the right in wp-dtree.php
can’t you just give me a clue ???
Plugin Author
ulfben
(@ulfben)
Clever. 🙂
I’m sorry to say that I am of no use to you though. I haven’t tried what you’re attempting. Your first attempt seems reasonable enough, but you probably need to adjust the placement of indentation icons too (the empty gifs) and make sure to clear your cache (blog and browser) between reloads.