2013-07-05 2 views
4
Finder 
Setting 

관리 메뉴 설정에서 맞춤 모듈의 시스템/구성으로 이동해야하는 URL은 무엇입니까?Magento 맞춤 모듈 : 관리자 메뉴 작성 방법

<menu> 
<finder module="finder"> 
    <title>finder</title> 
    <sort_order>71</sort_order>    
     <children> 
    <items module="finder"> 
    <title>Manage Finder</title> 
    <sort_order>0</sort_order> 
    <action>finder/adminhtml_finder</action> 
    </items> 
     <items module="finder"> 
    <title>Setting</title> 
    <sort_order>0</sort_order> 
    <action> ???? </action> 
</items> 
    </children> 
    </finder> 
    </menu> 

답변

1

시스템 구성의 카탈로그를 추가하려면 다음을 수행 할 수 있습니다. 당신이 system.xml

<?xml version="1.0"?> 
<config> 
    <tabs> 
     <helloconfig translate="label" module="todaydeal"> 
      <label>Today Deal</label> 
      <sort_order>99999</sort_order> 
     </helloconfig> 
    </tabs> 
    <sections> 
     <catalog> 
      <groups> 
       <todaydeal translate="label" module="todaydeal"> 
        <label>Daily Deal</label> 
        <frontend_type>text</frontend_type> 
        <sort_order>1000</sort_order> 
        <show_in_default>1</show_in_default> 
        <show_in_website>1</show_in_website> 
        <show_in_store>1</show_in_store> 

        <fields> 
         <active translate="label"> 
          <label>Enabled</label> 
          <frontend_type>select</frontend_type> 
          <source_model>adminhtml/system_config_source_yesno</source_model> 
          <sort_order>1</sort_order> 
          <show_in_default>1</show_in_default> 
          <show_in_website>1</show_in_website> 
          <show_in_store>0</show_in_store> 
         </active>       
        </fields> 
       </todaydeal> 
      </groups> 
     </catalog> 
    </sections> 
</config> 

당신은 또한 상세 Document LINK을 참조 할 수 있습니다를 만들 필요가, 내가 확신 내가 당신에게 매우 유용한 것이다.

내가 도울 수 있다면 알려 당신이 더

+0

예 시스템/구성에 설정 섹션을 만들지 만 열 링크는 무엇입니까? 설정 ????

+0

시스템 구성에서 core_config_data 대신 사용자 정의 테이블 데이터를 사용하여 사용자 정의 모듈을 호출 하시겠습니까? – liyakat

1
당신은 코드가 관리자의 사이드 메뉴를 만들고 또한 응용 프로그램/코드의 코드를 다음과 같은 시스템/configuration.Add을 할 수있는 행동이를 사용할 수 있습니다

/지역/[NAME_SPACE]/[Module_Name] /etc/config.xml

 <adminhtml> 
     <menu> 
            <news module="news"> 
                <title>News</title> 
                <sort_order>71</sort_order>                
                <children> 
                    <items module="news"> 
                        <title>Manage Items</title> 
                        <sort_order>0</sort_order> 
                        <action>news/adminhtml_news</action> 
                    </items> 
                    <items1 module="news"> 
                        <title>Import News Data</title> 
                        <sort_order>1</sort_order> 
                        <action>adminhtml/system_config/edit/section/news</action> 
                    </items1> 
                </children> 
            </news> 
        </menu> 
  </adminhtml> 

여기서 news는 system.xml 파일의 섹션 이름과 동일합니다.

+0

우수 ... 도움이 .. 짧고 똑똑한 ... +1 –

1

안녕 <itmes> 대신 다음 코드를 추가하십시오.

<config module="finder"> 
         <title>Configurations</title> 
         <sort_order>10</sort_order> 
         <action>adminhtml/system_config/edit/section/finder</action> 
        </config> 

       Write down ACL code after the </menu> ending tag. Your code will be like this 

       <acl> 
    <resources> 
     <all> 
      <title>Allow Everything</title> 
     </all> 
     <admin> 
      <children> 
       <My_module> 
        <title>My finder Module</title> 
        <sort_order>10</sort_order> 
       </My_module> 
       <system> 
        <children> 
        <config> 
         <children> 
         <finder> 
          <title>finder Module Section</title> 
         </finder> 
         </children> 
        </config> 
        </children> 
       </system> 
      </children> 
     </admin> 
    </resources> 
</acl>