2017-05-02 72 views
0

我是新的typo3擴展開發,我已經創建了extension_builder和後端模塊的擴展。爲typo3自定義擴展配置全屏後端模塊

ext_tables.php

if (TYPO3_MODE === 'BE') { 

     \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
      'USER.Webuser', 
      'web', // Make module a submodule of 'web' 
      'bewebuser', // Submodule key 
      '', // Position 
      [ 
       'Users' => 'list, show, new, create, edit, update, delete', 
      ], 
      [ 
       'access' => 'user,group', 
       'icon' => 'EXT:' . $extKey . '/Resources/Public/Icons/user_mod_bewebuser.svg', 
       'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_bewebuser.xlf', 
      ] 
     ); 

    } 

Typo腳本:

# Setting up template 
module.tx_webuser_web_webuserbewebuser { 
    persistence { 
     storagePid = {$module.tx_webuser_bewebuser.persistence.storagePid} 
    } 
    view { 
     templateRootPaths = EXT:webuser/Resources/Private/Backend/Templates/ 
     partialRootPaths = EXT:webuser/Resources/Private/Backend/Partials/ 
     layoutRootPaths = EXT:webuser/Resources/Private/Backend/Layouts/ 
    } 
} 

其工作文件。這裏是我的BE模塊: enter image description here

但是,我想創建包括頁面樹在內的完整區域。任何人都可以告訴我如何刪除我的自定義擴展使用的頁面樹?我想將整個區域用於我的自定義擴展。

謝謝先進!

+0

你的意思是沒有pagetree柱後端MODUL? – jokumer

+0

是的,正是.. @ jokumer。 –

回答

2

看了看into the source,看來你可以將選項'navigationComponentId' => '',添加到registerModule的最後一個參數來得到你想要的。

在您的例子那就是:

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
    'USER.Webuser', 
    'web', // Make module a submodule of 'web' 
    'bewebuser', // Submodule key 
    '', // Position 
    [ 
     'Users' => 'list, show, new, create, edit, update, delete', 
    ], 
    [ 
     'access' => 'user,group', 
     'icon' => 'EXT:' . $extKey . '/Resources/Public/Icons/user_mod_bewebuser.svg', 
     'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_bewebuser.xlf', 
     'navigationComponentId' => '', 
    ] 
); 
+0

謝謝你的回覆@ Nitori,但我已經嘗試過。它仍然顯示頁面樹模塊.. –

+0

你重新加載你的後端並清除所有緩存?它對我來說都在TYPO3 7.6和8.7 – Nitori

+0

哦對了它的作品!我需要重新加載洞頁面。非常感謝你..! –