2017-12-05 2 views
0

typo3 7.6.12에서 백엔드 모듈을 사용하여 확장을 생성 중입니다. 첫 번째 단계로, 레코드를 백엔드 모듈의 목록으로 표시해야합니다. 방금 컨트롤러 이름을 추가했지만 백엔드 모듈 목록을 작성하는 방법에 대해서는 알지 못합니다. 그래서 백엔드 모듈에서 이름 등의 특정 필드를 데이터베이스에서 나열하는 것이 가능합니다 ... powermail 이외의 다른 참조 용으로 간단한 확장이 있습니까?typo3 extbase에서 백엔드 모듈 용 데이터베이스의 데이터를 나열하는 방법

+1

확장명 https://github.com/GhanshyamBhava/webuser를 확인하십시오. 또한 [TER] (https://extensions.typo3.org/extension/extension_builder/)의 확장 빌더 확장을 사용하여 extBase –

답변

1

먼저 아래의 ext_tables.php 파일에 BE 모듈을 등록해야합니다.

if (TYPO3_MODE === 'BE') { 
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
     'Vendor' . $_EXTKEY, 
     'web',   // Main area 
     'mod1',   // Name of the module 
     '',    // Position of the module 
     array(   // Allowed controller action combinations 
      'Controller' => 'action, update, edit' 
     ), 
     array(   // Additional configuration 
      'access' => 'user,group', 
      'icon'  => 'EXT:blog_example/ext_icon.gif', 
      'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml', 
     ) 
    ); 
} 

After Register BE 모듈. 목록 레코드를위한 템플릿 폴더를 만들고이 템플릿 폴더를 사용하려면 setup.txt 파일에 타이포 스크립트 아래에 추가해야합니다.

module.tx_blogexample { 
    settings < plugin.tx_blogexample.settings 
    persistence < plugin.tx_blogexample.persistence 
    view < plugin.tx_blogexample.view 
    view { 
     templateRootPath = EXT:blog_example/Resources/Private/Backend/Templates/ 
     partialRootPath = EXT:blog_example/Resources/Private/Backend/Partials/ 
     layoutRootPath = EXT:blog_example/Resources/Private/Backend/Layouts/ 
    } 
} 
+0

을 시작할 수 있습니다. 백엔드 모듈의 경우 xls/csv를 통해 내보낼 수있는 문서가 있습니까? 오타 3에? 내보내기 기능을 수행하기위한 기본 단계는 무엇입니까? – Ques

관련 문제