Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorrhopiphi
    • CommentTimeMay 23rd 2008
     
    I was wondering if there was a way to sort by "Name" under the "Manage" Tab.
    • CommentAuthorrhopiphi
    • CommentTimeMay 26th 2008
     
    Can anyone help?

    When I make new albums in collections and go to manage them (i.e. Under the Manage tab), the albums are unsorted and it makes it hard to figure out what is where. Is there anyway I can sort them by name rather than date created?
    •  
      CommentAuthorkimparsell
    • CommentTimeMay 26th 2008 edited
     
    Currently, Plogger is set to sort the albums on the Manage tab by id. If you are using Plogger3 and would like them to be sorted by name, then open admin/plog-admin-functions.php with a text editor and look around line 1256 for the following code, and make the change indicated for the 'sortby' line (indicated in bold):

    function plog_album_manager($id,$from,$limit) {
    $output = '';

    plogger_init_albums(array(
    'from' => $from,
    'collection_id' => $id,
    'limit' => $limit,
    'all_albums' => 1,
    'sortby' => 'name',
    'sortdir' => 'asc'
    ));


    Same file, look again around line 1283 and make the change indicated for the 'sortby' line in this array:

    plogger_init_albums(array(
    'from' => $from,
    'collection_id' => $id,
    'limit' => $limit,
    'all_albums' => 1,
    'sortby' => 'name',
    'sortdir' => 'asc'
    ));


    Save and upload the changed version of plog-admin-functions.php to your server.

    Let me know if this resolves your issue.
    • CommentAuthorrhopiphi
    • CommentTimeJun 10th 2008
     
    That worked wonderfully! Thank you very much.