We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22980
    • 84 Posts
    Hi

    I’ve got a couple manager tweaks to do upon request from a client:

    - To order all documents in the document tree alphabetically
    - After canceling any page, bring to home page rather than the "View Resource Data" page.

    Any ideas or advice to save me hours of digging through core code?

    Thanks!
      • 22980
      • 84 Posts
      Figured it out, and it actually didn’t take too long smiley

      where index.php?a=2 takes you to the welcome screen (as per the wiki:manager actions)

      mutate_content.dynamic.php
      - search for "button4"
      - changed to link back to the home page on cancel
      <li id="Button4"><a href="#" onclick="documentDirty=false;<?php echo $id==0 ? "document.location.href=’index.php?a=2’;" : "document.location.href=’index.php?a=3&amp;id=$id’;"?>"><img src="<?php echo $_style["icons_cancel"] ?>" /> <?php echo $_lang[’cancel’]?></a></li>


      noedes.php
      - search for $orderby:
      // $orderby = $_SESSION[’tree_sortby’]." ".$_SESSION[’tree_sortdir’];
      $orderby = ’pagetitle’;

      You can search for a query further down, and see all the possible sort optio