mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
minor model url assemble imporvements, inline edit added for custom
pages sef url string
This commit is contained in:
parent
6b820f4076
commit
3847aca845
@ -306,7 +306,7 @@ class page_admin_ui extends e_admin_ui
|
||||
protected $sortField = 'page_order';
|
||||
protected $orderStep = 10;
|
||||
//protected $url = array('profile'=>'page/view', 'name' => 'page_title', 'description' => '', 'link'=>'{e_BASE}page.php?id=[id]'); // 'link' only needed if profile not provided.
|
||||
protected $url = array('route'=>'page/view/index', 'vars' => array('id' => 'page_id', 'sef' => 'page_sef'), 'name' => 'page_title', 'description' => ''); // 'link' only needed if profile not provided.
|
||||
protected $url = array('route'=>'page/view/index', 'vars' => array('id' => 'page_id', 'name' => 'page_sef'), 'name' => 'page_title', 'description' => ''); // 'link' only needed if profile not provided.
|
||||
protected $tabs = array("Page","Page Options","Menu");
|
||||
protected $featurebox = array('name'=>'page_title', 'description'=>'page_text', 'image' => 'menu_image', 'visibility' => 'page_class', 'url' => true);
|
||||
|
||||
@ -342,7 +342,7 @@ class page_admin_ui extends e_admin_ui
|
||||
'page_rating_flag' => array('title'=> LAN_RATING, 'tab' => 1, 'type' => 'boolean', 'data'=>'int', 'width' => '5%', 'thclass' => 'center', 'class' => 'center' ),
|
||||
'page_comment_flag' => array('title'=> ADLAN_114, 'tab' => 1, 'type' => 'boolean', 'data'=>'int', 'width' => '5%', 'thclass' => 'center', 'class' => 'center' ),
|
||||
// 'page_password' => array('title'=> LXAN_USER_05, 'type' => 'text', 'width' => 'auto'),
|
||||
'page_sef' => array('title'=> LAN_SEFURL, 'tab' => 1, 'type' => 'text', 'width' => 'auto'),
|
||||
'page_sef' => array('title'=> LAN_SEFURL, 'tab' => 1, 'type' => 'text', 'inline'=>true, 'width' => 'auto'),
|
||||
'page_metakeys' => array('title'=> LAN_KEYWORDS, 'tab' => 1, 'type' => 'tags', 'width' => 'auto'),
|
||||
'page_metadscr' => array('title'=> CUSLAN_11, 'tab' => 1, 'type' => 'text', 'width' => 'auto', 'writeParms'=>'size=xxlarge'),
|
||||
|
||||
|
@ -657,7 +657,7 @@ class e_model extends e_object
|
||||
elseif(!is_array($options)) parse_str($options, $options);
|
||||
|
||||
$vars = $this->toArray();
|
||||
if(!vartrue($options['allow']))
|
||||
if(!isset($options['allow']) || empty($options['allow']))
|
||||
{
|
||||
if(vartrue($urldata['vars']) && is_array($urldata['vars']))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user