Your IP : 216.73.216.189


Current Path : /var/www/surf/TYPO3/src/surf/
Upload File :
Current File : /var/www/surf/TYPO3/src/surf/ext_localconf.php

<?php
defined('TYPO3') || die();

(static function() {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
        'Surf',
        'Order',
        [
            \Torresani\Surf\Controller\OrderController::class => 'list, show, moving'
        ],
        // non-cacheable actions
        [
            \Torresani\Surf\Controller\OrderController::class => 'list, show, moving'
        ]
    );

    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
        'Surf',
        'Delivery',
        [
            \Torresani\Surf\Controller\DeliveryController::class => 'list, show, moving, reset'
        ],
        // non-cacheable actions
        [
            \Torresani\Surf\Controller\DeliveryController::class => 'list, show, moving, reset'
        ]
    );

    // wizards
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
        'mod {
            wizards.newContentElement.wizardItems.plugins {
                elements {
                    order {
                        iconIdentifier = surf-plugin-order
                        title = LLL:EXT:surf/Resources/Private/Language/locallang_db.xlf:tx_surf_order.name
                        description = LLL:EXT:surf/Resources/Private/Language/locallang_db.xlf:tx_surf_order.description
                        tt_content_defValues {
                            CType = list
                            list_type = surf_order
                        }
                    }
                    delivery {
                        iconIdentifier = surf-plugin-delivery
                        title = LLL:EXT:surf/Resources/Private/Language/locallang_db.xlf:tx_surf_delivery.name
                        description = LLL:EXT:surf/Resources/Private/Language/locallang_db.xlf:tx_surf_delivery.description
                        tt_content_defValues {
                            CType = list
                            list_type = surf_delivery
                        }
                    }
                }
                show = *
            }
       }'
    );
})();