Menu

Deactivating sorting elements?

Help
2013-01-25
2013-01-28
  • Notis Toufexis

    Notis Toufexis - 2013-01-25

    Hi,
    when selecting Resources in list_SELECTRESOURCES_CORE or similar actions, I would like to deactivate some of the fields shown in the "Order by" form (Title, Publisher, Timestamp). I looked at the code in all relevant places I could think of without success (php newbie).

    Best,
    Notis

     
  • Mark Grimshaw

    Mark Grimshaw - 2013-01-25

    Hi Notis,

    Line 687 in core/list/LISTCOMMON.php:
    $order = array(
    "creator" => $this->messages->text("list", "creator"),
    "title" => $this->messages->text("list", "title"),
    "publisher" => $this->messages->text("list", "publisher"),
    "year" => $this->messages->text("list", "year"),
    "timestamp" => $this->messages->text("list", "timestamp"),
    );

    Comment out the lines you don't want with
    //

    NB 1 - This will also disable elements for SEARCH.

    NB 2 - You will have to redo this each time you upgrade wikindx.

    Mark

     

Log in to post a comment.