[Tips] 모듈 관리자 화면에서 탭페이지를 추가하는 방법... (rxe-module-isx 통합검색확장모듈 기능 커스텀...)
2020.05.14 07:46
53
0
https://eond.com/433570
object(HotopayModel)#817 (23) { ["error"]=> int(0) ["message"]=> string(7) "success" ["variables"]=> array(0) { } ["httpStatusCode"]=> int(200) ["module"]=> string(7) "hotopay" ["module_info"]=> NULL ["origin_module_info"]=> NULL ["module_config"]=> NULL ["module_path"]=> string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/" ["xml_info"]=> NULL ["module_srl"]=> NULL ["mid"]=> NULL ["act"]=> NULL ["template_path"]=> NULL ["template_file"]=> NULL ["layout_path"]=> NULL ["layout_file"]=> NULL ["edited_layout_file"]=> NULL ["stop_proc"]=> bool(false) ["user"]=> object(Rhymix\Framework\Helpers\SessionHelper)#816 (20) { ["member_srl"]=> int(0) ["user_id"]=> NULL ["user_name"]=> NULL ["nick_name"]=> NULL ["email_address"]=> NULL ["phone_number"]=> NULL ["homepage"]=> NULL ["blog"]=> NULL ["birthday"]=> NULL ["denied"]=> NULL ["status"]=> NULL ["is_admin"]=> string(1) "N" ["is_site_admin"]=> NULL ["profile_image"]=> NULL ["image_name"]=> NULL ["image_mark"]=> NULL ["signature"]=> NULL ["description"]=> NULL ["group_list"]=> array(0) { } ["menu_list"]=> array(0) { } } ["request"]=> object(Rhymix\Framework\Request)#10 (13) { ["method"]=> string(3) "GET" ["compat_method"]=> string(3) "GET" ["url"]=> string(17) "xe/433570/page/20" ["hostname"]=> string(8) "eond.com" ["domain"]=> NULL ["protocol"]=> string(5) "https" ["callback_function"]=> string(0) "" ["_route_status":protected]=> int(200) ["_route_options":protected]=> object(stdClass)#11 (5) { ["cache_control"]=> bool(true) ["check_csrf"]=> bool(true) ["is_forwarded"]=> bool(false) ["is_indexable"]=> bool(true) ["enable_session"]=> bool(true) } ["module"]=> string(5) "board" ["mid"]=> string(2) "xe" ["act"]=> string(16) "dispBoardContent" ["args"]=> array(7) { ["listStyle"]=> string(4) "list" ["order_type"]=> string(4) "desc" ["sort_index"]=> string(11) "voted_count" ["document_srl"]=> string(6) "433570" ["page"]=> int(1) ["mid"]=> string(2) "xe" ["act"]=> string(16) "dispBoardContent" } } ["ajaxRequestMethod"]=> array(2) { [0]=> string(6) "XMLRPC" [1]=> string(4) "JSON" } ["gzhandler_enable"]=> bool(true) }

[목차]

1. 함수 추가

modules\isx\isx.admin.view.php


2. 모듈xml에서 해당 액션 추가

modules\isx\conf\module.xml


3. 관리자에서 탭메뉴 링크 추가

modules\isx\tpl\header.html


4. 실제 페이지 작업

modules\isx\tpl\test.html



1. 함수 추가

modules\isx\isx.admin.view.php

function dispIsxAdminKeywordlist2() {
   // 템플릿 파일 지정
   $this->setTemplatePath($this->module_path.'tpl');
   $this->setTemplateFile('test');
   $args->search_srls = array();
   $args->sort_index = Context::get('sort_index');
   $args->order_type = Context::get('order_type');
   if(!$args->order_type) $args->order_type = "desc";
   $r_order = ($args->order_type == 'desc')?'asc':'desc';
   Context::set('r_order',$r_order);
   if(!$args->sort_index) $args->sort_index = "regdate";
   $args->page = Context::get('page');
   if(!$args->page) $args->page=1;
   $oIsx = &getModel('isx');
   $output = $oIsx->getKeywordAll($args);
   if(count($output->data))
   {
      $oMemberModel = &getModel('member');
      $data = array();
      foreach($output->data as $key => $val)
      {
         $temp = array();
         $temp['regdate'] = $val->regdate;
         $temp['member_srl'] = $val->member_srl;
         $temp['ipaddress'] = $val->ipaddress;
         $temp['keyword'] = $val->keyword;
         $temp['search_srl'] = $val->search_srl;
         if($val->member_srl)
         {
            $member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
            $temp['nickname'] = $member_info->nick_name;
         }
         else
            $temp['nickname'] = '';
         $data[] = $temp;
      }
      Context::set('key_list', $data);
   }
   else Context::set('key_list', $output->data);
   Context::set('total_count', $output->total_count);
   Context::set('total_page', $output->total_page);
   Context::set('page', $output->page);
   Context::set('page_navigation', $output->page_navigation);
}

function 함수명(){

템플릿 지정..

기능 정의..

}


2. 모듈xml에서 해당 액션 추가

modules\isx\conf\module.xml

<action name="dispIsxAdminKeywordlist2" type="view" standalone="true" />

해당 액션 함수명과 type 설정..view/modle/controller


3. 관리자에서 탭메뉴 링크 추가

modules\isx\tpl\header.html

실제 관리자 프론트 단에서 탭메뉴 링크 추가

<li class="x_active"|cond="$act=='dispIsxAdminKeywordlist2'">
   <a href="{getSiteUrl($module_info->domain,'','module','admin', 'act','dispIsxAdminKeywordlist2')}">{$lang->isx_keyword_list}2</a></li>


4. 실제 페이지 작업

modules\isx\tpl\test.html

<include target="header.html" />
test.html
<include target="footer.html" />


라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요

네이버로 로그인