usergallery - dir listing

Creating and modifying plugins.
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

usergallery - dir listing

Post by stm999999999 »

usergallery, the next :-)

given:

+article
++2006
+++hobby
++++hobby 1
++++hobby 2
+++work
++2005
+++hobby
+intern

Is there a way to display only the direct sub-dir of the current dir and not the sub-sub(-sub...)-directories? Like the child-pages in a static page?

not:

++2006
+++hobby
++++hobby 1
++++hobby 2
+++work

but:

++2006
+++hobby
+++work

And, if it is possible, the image count after the dir name should not only count the images in the sub-dir, but the summary of all images in the sub-dir AND the sub-sub(...)-dirs.
Ciao, Stephan
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Just added Version 2.12 to CVS. This update adds this option (set "Only show one directory level lower" to "yes"), but it does not allow it when "Display the whole directory tree" is enabled.
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

you are my hero! :-)

one interesting side effect:

+article
++2006
+++hobby
++++hobby 1
++++hobby 2
+++work
++2005
+++hobby
+intern

Only show one directory level lower: no

i am in article(default-dir)::2006

I see:

+one level up
++hobby
+++hobby 1
+++hobby 2
++work


Only show one directory level lower: yes

+one level up
++2006 <- the level I am on!
+++hobby
+++work
Ciao, Stephan
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Ahhh... yeah... I put an "if" statement in to double check that I was parsing right and I forgot to remove it... Sorry 'bout that.

Version 2.13 should fix it.
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

good job! thanks!

I hope the next days my project will be released - so I can show you and all the others, who implemented my whishes and suggestions, the result of our work :-)
Ciao, Stephan
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

Ciao, Stephan
Post Reply