different listcontent.php view

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
redkevin11
Forum Members
Forum Members
Posts: 29
Joined: Fri May 20, 2005 6:21 pm

different listcontent.php view

Post 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";
...
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: different listcontent.php view

Post by Greg »

I think I like this layout better than the standard one. A little easier to distinguish sub sub page.
Greg
Post Reply

Return to “Developers Discussion”