/** * Get node label * * @access public * @param Varien_Object $node * @return string * @author Ultimate Module Creator */ public function buildNodeName($node) { $result = parent::buildNodeName($node); $result .= '<a target="_blank" href="' . $this->getUrl('adminhtml/cmsextended_page/index', array('id' => $node->getId(), 'clear' => 1)) . '"><em>' . $this->__(' - Edit') . '</em></a>'; return $result; }
/** * Returns array with configuration of current node * * @access protected * @param Varien_Data_Tree_Node $node * @param int $level How deep is the node in the tree * @return array * @author Ultimate Module Creator */ protected function _getNodeJson($node, $level = 1) { $item = parent::_getNodeJson($node, $level); if ($this->_isParentSelectedPage($node)) { $item['expanded'] = true; } if (in_array($node->getId(), $this->getPageIds())) { $item['checked'] = true; } return $item; }