Ignore:
Timestamp:
Mar 15, 2006, 11:44:35 PM (18 years ago)
Author:
plg
Message:

new: cleaner URL. Instead of category.php?cat=search&search=123&start=42,
you now have category.php?/search/123/start-42. Functions make_index_url and
make_picture_url build these new URLs. Functions duplicate_picture_url and
duplicate_index_url provide shortcuts to URL creation. The current main page
page is still category.php but this can be modified easily in make_index_url
function. In this first version, no backward compatibility. Calendar
definition in URL must be discussed with rvelices.

improvement: picture.php redesigned. First actions like "set as
representative" or "delete a comment" which all lead to a redirection. Then
the page (the big mess) and includes of new sub pages to manage specific
parts of the page (metadata, user comments, rates).

new: with the cleaner URL comes a new terminology. $pagecat doesn't
exist anymore. $pagesection is among 'categories', 'tags' (TODO),
'list', 'most_seen'... And sub parameters are set : $pagecategory if
$pagesection is "categories". See URL analyse in
include/section_init.inc.php for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r1072 r1082  
    270270}
    271271
    272 $template->assign_vars(array(
    273   'CATEGORIES_NAV'=>$navigation,
    274   'CAT_NAME'=>$category['name'],
    275   'CAT_COMMENT'=>$category['comment'],
    276  
    277   $status=>'checked="checked"',
    278   $lock=>'checked="checked"',
    279   $commentable=>'checked="checked"',
    280   $uploadable=>'checked="checked"',
    281  
    282   'L_EDIT_NAME'=>$lang['name'],
    283   'L_STORAGE'=>$lang['storage'],
    284   'L_REMOTE_SITE'=>$lang['remote_site'],
    285   'L_EDIT_COMMENT'=>$lang['description'],
    286   'L_EDIT_STATUS'=>$lang['conf_access'],
    287   'L_STATUS_PUBLIC'=>$lang['public'],
    288   'L_STATUS_PRIVATE'=>$lang['private'],
    289   'L_EDIT_LOCK'=>$lang['lock'],
    290   'L_EDIT_UPLOADABLE'=>$lang['editcat_uploadable'],
    291   'L_EDIT_COMMENTABLE'=>$lang['comments'],
    292   'L_YES'=>$lang['yes'],
    293   'L_NO'=>$lang['no'],
    294   'L_SUBMIT'=>$lang['submit'],
    295   'L_SET_RANDOM_REPRESENTANT'=>$lang['cat_representant'],
    296 
    297   'U_JUMPTO'=>PHPWG_ROOT_PATH.'category.php?cat='.$category['id'],
    298   'U_CHILDREN'=>$cat_list_url.'&parent_id='.$category['id'],
    299   'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_modify',
    300    
    301   'F_ACTION'=>$form_action
    302   ));
     272$template->assign_vars(
     273  array(
     274    'CATEGORIES_NAV'     => $navigation,
     275    'CAT_NAME'           => $category['name'],
     276    'CAT_COMMENT'        => $category['comment'],
     277   
     278    $status              => 'checked="checked"',
     279    $lock                => 'checked="checked"',
     280    $commentable         => 'checked="checked"',
     281    $uploadable          => 'checked="checked"',
     282   
     283    'L_EDIT_NAME'        => $lang['name'],
     284    'L_STORAGE'          => $lang['storage'],
     285    'L_REMOTE_SITE'      => $lang['remote_site'],
     286    'L_EDIT_COMMENT'     => $lang['description'],
     287    'L_EDIT_STATUS'      => $lang['conf_access'],
     288    'L_STATUS_PUBLIC'    => $lang['public'],
     289    'L_STATUS_PRIVATE'   => $lang['private'],
     290    'L_EDIT_LOCK'        => $lang['lock'],
     291    'L_EDIT_UPLOADABLE'  => $lang['editcat_uploadable'],
     292    'L_EDIT_COMMENTABLE' => $lang['comments'],
     293    'L_YES'              => $lang['yes'],
     294    'L_NO'               => $lang['no'],
     295    'L_SUBMIT'           => $lang['submit'],
     296    'L_SET_RANDOM_REPRESENTANT'=>$lang['cat_representant'],
     297
     298    'U_JUMPTO' => make_index_url(
     299      array(
     300        'category' => $category['id'],
     301        )
     302      ),
     303   
     304    'U_CHILDREN' => $cat_list_url.'&parent_id='.$category['id'],
     305    'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_modify',
     306   
     307    'F_ACTION' => $form_action,
     308    )
     309  );
    303310
    304311
Note: See TracChangeset for help on using the changeset viewer.