to show the expanded tree category

Phoca Gallery modules - modules for Phoca Gallery extension
sun632
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 06 Feb 2010, 10:16

to show the expanded tree category

Post 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
Last edited by sun632 on 03 Mar 2010, 02:12, edited 1 time in total.
Ronny
Phoca Professional
Phoca Professional
Posts: 211
Joined: 03 Nov 2009, 20:31
Location: Germany
Contact:

Re: to show the expanded tree category

Post by Ronny »

Hi,

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

Regards,
Ronny
sun632
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 06 Feb 2010, 10:16

Re: to show the expanded tree category

Post 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
Ronny
Phoca Professional
Phoca Professional
Posts: 211
Joined: 03 Nov 2009, 20:31
Location: Germany
Contact:

Re: to show the expanded tree category

Post 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
pagchen
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 10 Jun 2010, 21:23

Re: to show the expanded tree category

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: to show the expanded tree category

Post by Jan »

Thank you for this info.

Jan
If you find Phoca extensions useful, please support the project
fxer
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 16 Aug 2011, 16:56

sub categories to remain closed...

Post 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:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: to show the expanded tree category

Post 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
If you find Phoca extensions useful, please support the project
Post Reply