mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
페이지 편집 페이지에서 '모듈 설정 화면' 설정과는 상관없이 무조건 사용자 레이아웃 적용
레이아웃마다 너비가 모두 다르므로 관리자 레이아웃 적용시 정확도가 엄청 떨어짐
This commit is contained in:
parent
65a96a0344
commit
9e59a6d839
2 changed files with 8 additions and 6 deletions
|
|
@ -456,9 +456,7 @@ class ModuleObject extends BaseObject
|
|||
* */
|
||||
function setLayoutFile($filename)
|
||||
{
|
||||
if(!$filename) return;
|
||||
|
||||
if(substr_compare($filename, '.html', -5) !== 0)
|
||||
if($filename && substr_compare($filename, '.html', -5) !== 0)
|
||||
{
|
||||
$filename .= '.html';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,10 +188,11 @@ class pageAdminView extends page
|
|||
{
|
||||
return $this->setError(sprintf('%s method is not exists', $method));
|
||||
}
|
||||
|
||||
|
||||
Context::set('module_info', $this->module_info);
|
||||
Context::set('page_content', $page_content);
|
||||
|
||||
|
||||
$this->setLayoutFile('');
|
||||
$this->setTemplateFile('mcontent');
|
||||
}
|
||||
|
||||
|
|
@ -259,6 +260,7 @@ class pageAdminView extends page
|
|||
$security->encodeHTML('widget_list..title','module_info.mid');
|
||||
|
||||
// Set a template file
|
||||
$this->setLayoutFile('');
|
||||
$this->setTemplateFile($templateFile);
|
||||
}
|
||||
|
||||
|
|
@ -294,10 +296,12 @@ class pageAdminView extends page
|
|||
{
|
||||
$oDocument->add('module_srl', $this->module_info->module_srl);
|
||||
}
|
||||
|
||||
|
||||
Context::addJsFilter($this->module_path.'tpl/filter', 'insert_article.xml');
|
||||
Context::set('oDocument', $oDocument);
|
||||
Context::set('mid', $this->module_info->mid);
|
||||
|
||||
$this->setLayoutFile('');
|
||||
$this->setTemplateFile('article_content_modify');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue