Menu

SiteMap_Load_API

Anonymous

http://code.google.com/p/xe-core/issues/detail?id=2362

var params = new Array();
var response_tags = new Array('menuList');
params['menu_srl'] = menuSrl;
params['site_srl'] = siteSrl;
exec_xml("menu","getMenuAdminSiteMap", params, completeTmp, response_tags)

위와 같이 호출 하면 아래와 같은 형태로 리턴 됨.

Array
(
    [0] => stdClass Object
        (
            [menuSrl] => 59
            [title] => welcome_menu
            [menuItems] => stdClass Object
                (
                    [list] => Array
                        (
                            [60] => Array
                                (
                                    [node_srl] => 60
                                    [parent_srl] => 0
                                    [menu_name_key] => menu1
                                    [text] => menu1
                                    [href] => 
                                    [url] => 
                                    [is_shortcut] => N
                                    [open_window] => N
                                    [normal_btn] => 
                                    [hover_btn] => 
                                    [active_btn] => 
                                    [selected] => 0
                                    [expand] => N
                                    [list] => Array
                                        (
                                            [61] => Array
                                                (
                                                    [node_srl] => 61
                                                    [parent_srl] => 60
                                                    [menu_name_key] => $user_lang->userLang20121026153820095
                                                    [text] => menu1-1
                                                    [href] => /maserati/index.php?mid=welcome_page
                                                    [url] => welcome_page
                                                    [is_shortcut] => N
                                                    [open_window] => N
                                                    [normal_btn] => 
                                                    [hover_btn] => 
                                                    [active_btn] => 
                                                    [selected] => 0
                                                    [expand] => N
                                                    [list] => Array
                                                        (
                                                        )

                                                    [link] => menu1-1
                                                    [module_srl] => 63
                                                    [module] => page
                                                    [setup_index_act] => dispPageAdminInfo
                                                    [is_start_module] => 1
                                                    [layout_srl] => 62
                                                    [browser_title] => 브라우져 제목입니다.
                                                )

                                        )

                                    [link] => menu1
                                )

                        )

                )

        )

)
  • 위의 내용에서 is_start_module의 값이 true(or 1)일 경우 시작 페이지임.
  • menu_name_key의 값은 다국어 사용을 위한 php 변수명을 내려 줌. 다국어를 사용하지 않을 경우에는 menu_name_key의 값은 text와 동일
  • browser_title은 module일 경우이면서 해당 값이 있을 경우 내려 줌.

Related

Wiki: ServerAPI

Discussion

  • Anonymous

    Anonymous - 2012-09-23

    Originally posted by: ovc...@gmail.com

    mid 필드 추가

     
  • Anonymous

    Anonymous - 2012-09-25

    Originally posted by: ovc...@gmail.com

    is_shortcut 필드 추가

     
  • Anonymous

    Anonymous - 2012-10-03

    Originally posted by: ovc...@gmail.com

    module_type 값 추가 필요(page 구분을 위해)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.