mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Custom Menu administration issues
This commit is contained in:
parent
5d81b20d33
commit
e71b0144a9
@ -182,21 +182,19 @@ class menu_admin_ui extends e_admin_ui
|
||||
protected $batchCopy = true;
|
||||
// protected $sortField = 'page_order';
|
||||
protected $orderStep = 10;
|
||||
protected $url = 'page/view';
|
||||
|
||||
|
||||
protected $fields = array(
|
||||
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
||||
'page_id' => array('title'=> 'ID', 'type'=>'text', 'tab' => 0, 'width'=>'5%', 'readParms'=>'link=sef&dialog=1','forced'=> TRUE),
|
||||
'page_theme' => array('title'=> "Menu Name", 'tab' => 0, 'type' => 'text', 'width' => 'auto','nolist'=>true),
|
||||
|
||||
'page_title' => array('title'=> LAN_TITLE, 'tab' => 0, 'type' => 'text', 'width'=>'25%','readParms'=>'link={e_BASE}page.php?[id]&dialog=1'),
|
||||
'page_title' => array('title'=> LAN_TITLE, 'tab' => 0, 'type' => 'text', 'width'=>'25%', 'inline'=>true,/*'readParms'=>'link={e_BASE}page.php?[id]&dialog=1'*/),
|
||||
// 'page_template' => array('title'=> 'Template', 'tab' => 0, 'type' => 'dropdown', 'width' => 'auto','filter' => true, 'batch'=>true, 'inline'=>true, 'writeParms'=>''),
|
||||
// 'page_author' => array('title'=> LAN_AUTHOR, 'tab' => 0, 'type' => 'user', 'data'=>'int','width' => 'auto', 'thclass' => 'left'),
|
||||
'page_text' => array('title'=> CUSLAN_9, 'type' => 'bbarea', 'data'=>'str', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1'),
|
||||
'page_datestamp' => array('title'=> LAN_DATE, 'type' => 'datestamp', 'data'=>'int', 'width' => 'auto','writeParms'=>'auto=1&readonly=1'),
|
||||
|
||||
'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center','readParms'=>'sort=1')
|
||||
'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center'/*,'readParms'=>'sort=1'*/)
|
||||
);
|
||||
|
||||
protected $fieldpref = array("page_id","page_theme", "page_title", "page_text");
|
||||
|
@ -527,7 +527,7 @@ class e_model extends e_object
|
||||
* Example: array('route'=>'page/view/index', 'vars' => array('id' => 'page_id', 'sef' => 'page_sef'), 'name' => 'page_title', 'description' => '');
|
||||
* @var string
|
||||
*/
|
||||
protected $_url;
|
||||
protected $_url = array();
|
||||
|
||||
/**
|
||||
* Runtime cache of parsed from {@link _getData()} keys
|
||||
@ -596,6 +596,7 @@ class e_model extends e_object
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
if(!is_array($url)) $url = array('route' => $url);
|
||||
$this->_url = $url;
|
||||
return $this;
|
||||
}
|
||||
@ -617,7 +618,7 @@ class e_model extends e_object
|
||||
*/
|
||||
public function url($options = array(), $extended = false)
|
||||
{
|
||||
$urldata = $this->getUrl();
|
||||
$urldata = $this->getUrl();
|
||||
if(empty($urldata) || !vartrue($urldata['route'])) return ($extended ? array() : null);
|
||||
|
||||
$eurl = e107::getUrl();
|
||||
|
Loading…
x
Reference in New Issue
Block a user