Announcement

  •  » Engine
  •  » [feature ?] jQuery to sort the available plugin list

#1 2009-04-09 08:43:16

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

[feature ?] jQuery to sort the available plugin list

as we already use jQuery in admin, and to improve perf on both piwogo's installations and especially on pem,
why not using a table sorter jQuery script (for ex: http://tablesorter.com/docs/ ) instead of refreshing the whole page ?

Last edited by repie38 (2009-04-09 08:43:38)

Offline

 

#2 2009-04-09 11:39:01

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [feature ?] jQuery to sort the available plugin list

If no conflict with other jQuery scripts, to be generalized...
+1


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2009-04-10 00:09:30

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [feature ?] jQuery to sort the available plugin list

repie38 wrote:

[...] to improve perf on both piwogo's installations and especially on pem

I'm not sure to understand. You mean the plugin lists in Piwigo admin or the extensions you can found on piwigo.org/ext?

Adding more and more dynamic behaviors in Piwigo admin is a good idea :-)

In Piwigo [Administration>Specials>Plugins>Other Plugins], we should also think about paginated list. I don't know what would be the behaviour of jQuery with paginated list. Can jQuery manage the pagination itself? (or else I suppose the sorting will be made only on visible rows)

Offline

 

#4 2009-04-10 02:29:32

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

Re: [feature ?] jQuery to sort the available plugin list

plg wrote:

repie38 wrote:

[...] to improve perf on both piwogo's installations and especially on pem

I'm not sure to understand. You mean the plugin lists in Piwigo admin or the extensions you can found on piwigo.org/ext?

I mean the plugin lists in piwigo admin. because each time we sort the list with an order parameter, the page is completely refreshed, and I suppose another request is made to pem.

for the last part of your post, I didn't really understand. could you tell it in french to be sure ?

Offline

 

#5 2009-04-14 21:33:56

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [feature ?] jQuery to sort the available plugin list

repie38 wrote:

I mean the plugin lists in piwigo admin

OK

repie38 wrote:

[...] and I suppose another request is made to pem.

(PEM is the web application used to manage Piwigo extensions). Yes, you are right.

repie38 wrote:

for the last part of your post, I didn't really understand

The main problem I see with javascript sorting is when the list has more than 1 page. If you have a single page with 100 rows, no problem. But if you have 5 pages with 20 rows on each page, how will javascript behave? Piwigo is currently coded so that PHP return only the 20 first rows for the first page. The javascript can't know what are the 80 remaining rows.

Offline

 

#6 2009-04-14 22:01:27

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

Re: [feature ?] jQuery to sort the available plugin list

plg wrote:

The main problem I see with javascript sorting is when the list has more than 1 page. If you have a single page with 100 rows, no problem. But if you have 5 pages with 20 rows on each page, how will javascript behave? Piwigo is currently coded so that PHP return only the 20 first rows for the first page. The javascript can't know what are the 80 remaining rows.

you're right, i didn't think to that. For those case, javascript need to have to whole list avaible, either by displaying the needed rows, or by using ajax.
but it seems that piwigo return all results in 1 page (on my test galery, more than 30, on a v.2.0.1).
am I wrong ?

Offline

 

#7 2009-04-14 22:07:47

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [feature ?] jQuery to sort the available plugin list

You're right: the plugin list is displayed on a single page.

I have in mind the user list and this one comes with 20 rows a page by default:

Code:

$conf['users_page'] = 20;

Offline

 

#8 2009-04-15 00:44:48

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

Re: [feature ?] jQuery to sort the available plugin list

ok, so before this feature, we need to define if plugin list comes all in one, or as the user list, by block.

in my point of view, we should not take care of displaying problems (I mean, wide lists) , but only of performances.
I don't really know what's behind the plugin list, so give your opinions
;)

Last edited by repie38 (2009-04-15 00:45:18)

Offline

 
  •  » Engine
  •  » [feature ?] jQuery to sort the available plugin list

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact