PHP code example of b13 / newspage

1. Go to this page and download the library: Download b13/newspage library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

b13 / newspage example snippets




B13\Newspage\Service\FilterService::registerFilter(
    'Filter Name',                                                              // this name will be used to call the filter internally
    \Vendor\Ext\Filter\ExampleFilter::class,
    'LLL:EXT:vendor/ext/Private/Language/newspage.xlf:filter.name',             // label to use for the plugin and frontend filter
    'EXT:site_tecselect/Configuration/FlexForms/Newspage/Filter/Partner.xml'    // optional flexform definition for a backend filter
);

$GLOBALS['TCA']['pages']['palettes']['tx_newspage_layout']['showitem'] = 'title,abstract,slug';