public function getChildrenAsUL($attributes = "", $titleEval = '"<li>" . $child->Title', $extraArg = null, $limitToMarked = false, $childrenMethod = "AllChildrenIncludingDeleted", $numChildrenMethod = "numChildren", $rootCall = true, $nodeCountThreshold = null, $nodeCountCallback = null) { if (get_class($this->owner) == 'NewsIndex') { $strURL = $this->owner->getNewsItemsEditLink(); $original = parent::getChildrenAsUL($attributes, $titleEval, $extraArg, $limitToMarked, $childrenMethod, $numChildrenMethod, $rootCall, $nodeCountThreshold, $nodeCountCallback); $output = $original ? $original : ""; $output .= "<ul{$attributes}>\n"; $output .= '<li class="readonly"> <a class="cms-panel-link" data-pjax-target="Content" href="' . $strURL . '">' . $this->owner->getTreeEditLinkText() . '</a> </li>'; $output .= "</ul>"; return $output; } else { return parent::getChildrenAsUL($attributes, $titleEval, $extraArg, $limitToMarked, $childrenMethod, $numChildrenMethod, $rootCall, $nodeCountThreshold, $nodeCountCallback); } }