| Anonymous | Login | Signup for a new account | 2013.06.19 12:05 CEST |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0002614 | [Piwigo] navigation | feature | N/A | 2012.04.10 11:57 | 2012.12.04 13:47 | ||
| Reporter | plg | View Status | public | ||||
| Assigned To | mistic100 | ||||||
| Priority | normal | Resolution | fixed | Platform | |||
| Status | closed | OS | |||||
| Projection | none | OS Version | |||||
| ETA | none | Fixed in Version | 2.5.0beta2 | Product Version | 2.4.3 | ||
| Target Version | 2.5.0beta2 | Product Build | |||||
| Summary | 0002614: pagination on albums | ||||||
| Description | We already have a pagination on thumbnails. A pagination on albums would also be useful. | ||||||
| Steps To Reproduce | |||||||
| Additional Information | |||||||
| Tags | No tags attached. | ||||||
| browser | any | ||||||
| Database engine and version | |||||||
| PHP version | |||||||
| Web server | Apache 1.3.x | ||||||
| Attached Files | |||||||
|
|
|||||||
Notes |
|
|
(0006646) svn (reporter) 2012.09.23 13:19 |
[Subversion] r18165 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature 2614: pagination on albums |
|
(0006647) rvelices (developer) 2012.09.24 09:02 |
would it be possible to retrieve category list in index.php instead of section_init ? (it will avoid unnecessary queries for picture page ...) thanks |
|
(0006648) mistic100 (developer) 2012.09.24 12:42 |
I prefer this kind of working, more logical I think BUT I agree tehre is one extra query, I can add if (script_basename()=='index') |
|
(0006651) svn (reporter) 2012.09.28 13:46 |
[Subversion] r18330 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature:2754 and feature:2614, fatal error when installing Piwigo |
|
(0006657) svn (reporter) 2012.10.01 15:58 |
[Subversion] r18392 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature 2614: pagination on albums, save one query on picture page |
|
(0006658) rvelices (developer) 2012.10.02 08:54 |
did you try recent albums ? because the code looks like: if ('categories' == $page['section']) { if ( ... and ('recent_cats'==$page['section'] or 'categories'==$page['section']) and (!isset($page['category']['count_categories']) or $page['category']['count_categories']>0 ) ) { obviously page[section] is always categories and never recent_cats and I also believe $page['category']['count_categories'] is never set whatever happens ... |
|
(0006659) rvelices (developer) 2012.10.02 09:21 |
In addition, albums are not sorted anymore because page[categories] are not sorted by rank (or global rank in case of recent_cats) and you slice this array I believe it is a lot cleaner to move all the added code from section_init/index into category_cats because - not included if you have an album only with images (count_categories is set by menubar) - you make a SINGLE query to get representatives, counters etc..., then you sort by rank/global_rank and apply slicing and create the navigation bar if required ... |
|
(0006665) svn (reporter) 2012.10.04 17:03 |
[Subversion] r18462 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature:2614 pagination on albums return to old fashioned way (one query in category_cats), restoring recent_cats feature and "menubar optimization", rename "starta" into "startcat" |
|
(0006668) rvelices (developer) 2012.10.04 18:21 |
note: but still missing a if ($page['section']=='recent_cats') uasort($categories_sql, 'global_rank_compare'); just after the hash_from_query (and remove the sort later in the code) |
|
(0006670) svn (reporter) 2012.10.04 18:44 |
[Subversion] r18464 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature:2614 restore global_rank on recent_cats |
|
(0006690) plg (manager) 2012.10.25 10:45 |
Can we consider this ticket as completed? |
|
(0006694) mistic100 (developer) 2012.10.25 10:51 |
yes |
|
(0006695) plg (manager) 2012.10.25 11:05 |
I've just made a few tests with a the setting "Number of albums per page" set to 4 and the first page shows 2 albums, the second 4, the third 3, the last 2 (this one is OK, the last page can have less than 4). I prefer to reopen for now and talk about it on 2.5.0beta2 |
|
(0006699) plg (manager) 2012.10.26 14:21 |
I guess the problem I have described is related to [Subversion] r18729 |
|
(0006700) rvelices (developer) 2012.10.27 08:54 |
> I guess the problem I have described is related to [Subversion] r18729 This commit is purely related to the the navigation bar links. Are the links in the nav bar ok or not ? (they are on my side) |
|
(0006701) mistic100 (developer) 2012.10.27 11:12 |
that's very strange and I can't reproduce on my side. plg is it on one of your online test galleries ? can I get an access ? |
|
(0006702) plg (manager) 2012.10.27 11:29 |
@rvelices I have tested navigation bar for thumbnails before releasing 2.5.0beta1 and it was perfectly OK @mistic100 it was on my local dev gallery. I will give another try and tell you. |
|
(0006720) svn (reporter) 2012.11.02 16:04 |
[Subversion] r18892 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature:2614 bad display when there are empty albums revert most of the previous changes and slice the array at the very end |
|
(0006721) plg (manager) 2012.11.02 16:16 |
with [Subversion] r18892 it's good for me, thank you mistic100. |
|
(0006738) rvelices (developer) 2012.11.13 12:30 |
mobile theme navigation bar is never shown now ... |
|
(0006739) svn (reporter) 2012.11.13 13:05 |
[Subversion] r19002 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature:2614 pagination on albums, change var name to allow redefinition |
|
(0006740) mistic100 (developer) 2012.11.13 13:06 |
SmartPocket doesn't show navbar, even for thumbnails the previous commit will allow SmartPocket to show all albums |
|
(0006741) rvelices (developer) 2012.11.13 15:39 |
Smartpocket on pwigo.org/demo shows nav bar for thumbs. The trunk does not. |
|
(0006742) svn (reporter) 2012.11.13 21:12 |
[Subversion] r19006 by rvelices on trunk -----[Subversion commit log]---------------------------------------------------- bug 2614: pagination on albums - fix mobile theme |
|
(0006743) svn (reporter) 2012.11.13 21:39 |
[Subversion] r19009 by mistic100 on trunk -----[Subversion commit log]---------------------------------------------------- feature:2614 pagination on albums, disable pagination on SmartPocket, waiting for a better integration |
|
(0006765) svn (reporter) 2012.12.04 13:47 |
[Subversion] r19281 by plg on trunk -----[Subversion commit log]---------------------------------------------------- feature 2614: on a upgraded gallery, nb_categories_page is set to 50 instead of the default value 12 for a new installation. |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group Contact |