Page 1 of 1

different listcontent.php view

Posted: Sat Feb 11, 2006 6:28 pm
by redkevin11
I don't know if anyone is finding this junk useful, but I'm just  posting my little "hacks" here.

My client is having a hard time seeing the hierarchy on the listcontent.php page.  I moved the expand/collapse buttons and changed the symbol to show hierarchy level.

Image

Around line 88 of admin/listcontent.php:

Code: Select all

...
  if (isset($one) && ($modifyall || check_ownership($userid,$one->Id()) || quick_check_authorship($one->Id(), $mypages))) {
        $thelist .= "<tr class=\"$currow\" onmouseover=\"this.className='".$currow.'hover'."';\" onmouseout=\"this.className='".$currow."';\">\n";

        $thelist .= "<td>".$one->Hierarchy()."</td>\n";
        
        $thelist .= "<td nowrap>";
        
        if ($indent) {
          for ($i=1;$i < $root->getLevel();$i++) {
            $thelist .= " |  ";
          }
        } ## if indent

        if ($one->ChildCount() > 0) {
          if (!in_array($one->Id(),$openedArray)) {
            $thelist .= "<a href=\"setexpand.php?content_id=".$one->Id()."&col=0&page=".$page."\">";
            $thelist .= $expandImg;
            $thelist .= "</a> ";
          } else {
            $thelist .= "<a href=\"setexpand.php?content_id=".$one->Id()."&col=1&page=".$page."\">";
            $thelist .= $contractImg;
            $thelist .= "</a> ";
          }
        }




        $thelist .= "<a href=\"editcontent.php?content_id=".$one->Id()."&page=".$page."\">".$one->Name()."</a></td>\n";
...

Re: different listcontent.php view

Posted: Sat Feb 11, 2006 7:14 pm
by Greg
I think I like this layout better than the standard one. A little easier to distinguish sub sub page.