aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_modify.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-09-11 21:40:00 +0000
committerplegall <plg@piwigo.org>2008-09-11 21:40:00 +0000
commitd39db9aaaf43eaedd634a7a5b7d06bcb69d41152 (patch)
tree645010e01f3d84ecbc131c883ca941c50386489b /admin/cat_modify.php
parentfdffe42bdc703a9f2391c77ae0256c33a3eac935 (diff)
feature 169 added: ability to manually sort images inside a category. A
dedicated screen let the administrator sort the images (pur HTML, no JavaScript yet). The "rank" sort order is available only for a category without flat mode. New database column image_category.rank. git-svn-id: http://piwigo.org/svn/trunk@2517 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index 5f1971653..5d788b8c2 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.php
@@ -274,8 +274,13 @@ if ('private' == $category['status'])
// manage category elements link
if ($category['has_images'])
{
- $template->assign( 'U_MANAGE_ELEMENTS',
- $base_url.'element_set&amp;cat='.$category['id']
+ $template->assign(
+ 'U_MANAGE_ELEMENTS',
+ $base_url.'element_set&amp;cat='.$category['id']
+ );
+ $template->assign(
+ 'U_MANAGE_RANKS',
+ $base_url.'element_set_ranks&amp;cat_id='.$category['id']
);
}
@@ -313,6 +318,7 @@ $sort_fields = array(
'hit' => l10n('most_visited_cat'),
'file' => l10n('File name'),
'id' => 'Id',
+ 'rank' => l10n('Rank'),
);
$sort_directions = array(