Page 1 of 1

to show the expanded tree category

Posted: 02 Mar 2010, 05:48
by sun632
Sorry for my bad english.

i want to show the expanded tree category. i want to make category tree auto expanded in the module , anyone plz tell me how to do.

tks

Re: to show the expanded tree category

Posted: 02 Mar 2010, 21:06
by Ronny
Hi,

I'm afraid this isn't possible... :(

Regards,
Ronny

Re: to show the expanded tree category

Posted: 03 Mar 2010, 02:17
by sun632
tks.
maybe i didn't express clearly my question. i mean :

in the module , the category tree is in status of expanded from the begining of open website by default.

how to do?

tks

Re: to show the expanded tree category

Posted: 03 Mar 2010, 20:03
by Ronny
Hi,

that's exactly what I understood - and this is not possible by default. Maybe this can be customized anywhere in the plugin code.

Regards,
Ronny

Re: to show the expanded tree category

Posted: 10 Jun 2010, 21:28
by pagchen
It is actually possible, but you need to edit the dtree.js found in the assets folder.
Around line 22, change
this._io = open || false;
to
this._io = open || true;

And now the tree will be expanded when page is loaded.

Beware that this change will be overwritten when you update the module.
cheers.

Re: to show the expanded tree category

Posted: 12 Jun 2010, 13:47
by Jan
Thank you for this info.

Jan

sub categories to remain closed...

Posted: 16 Aug 2011, 17:44
by fxer
Hello All
Thanks phoca for the best joomla image gallery. :twisted:

I had edited dtree.js :
this._io = open || true;
but it makes all categories and sub categories open, & I want the sub categories to remain closed.

Is there any way to do so ? :idea:

Re: to show the expanded tree category

Posted: 20 Aug 2011, 00:22
by Jan
Hi, in fact I don't know as I am not the developer of the tree javascript, so cannot give any advice there :-(

Jan