protected function NewsTab()
    {
        /** General news settings */
        return Tab::create(
            'News', _t('NewsSiteConfigExtension.NEWS', 'News'), CheckboxField::create('UseAbstract', _t('NewsSiteConfigExtension.ABSTRACT', 'Use abstract/summary')), CheckboxField::create('TweetOnPost', _t('NewsSiteConfigExtension.TWEETPOST', 'Tweet after posting a new item')), // Requires Firesphere/silverstripe-social
            NumericField::create('PostsPerPage', _t('NewsSiteConfigExtension.PPP', 'Amount of posts per page')), UploadField::create('DefaultImage', _t('NewsSiteConfigExtension.DEFAULTIMPRESSION', 'Default impression image for newsitems'))
        );
    }
protected function NewsTab()
    {
        /** General news settings */
        return Tab::create(
            'News', _t('NewsSiteConfigExtension.NEWS', 'News'), CheckboxField::create('UseAbstract', _t('NewsSiteConfigExtension.ABSTRACT', 'Use abstract/summary')), CheckboxField::create('TweetOnPost', _t('NewsSiteConfigExtension.TWEETPOST', 'Tweet after posting a new item')), // Requires Firesphere/silverstripe-social
            NumericField::create('PostsPerPage', _t('NewsSiteConfigExtension.PPP', 'Amount of posts per page')), UploadField::create('DefaultImage', _t('NewsSiteConfigExtension.DEFAULTIMPRESSION', 'Default impression image for newsitems'))
        );
    }
protected function NewsTab ( ) { /** General news settings */ return Tab :: create ( 'News' , _t ( 'NewsSiteConfigExtension.NEWS' , 'News' ) , CheckboxField :: create ( 'UseAbstract' , _t ( 'NewsSiteConfigExtension.ABSTRACT' , 'Use abstract/summary' ) ) , CheckboxField :: create ( 'TweetOnPost' , _t ( 'NewsSiteConfigExtension.TWEETPOST' , 'Tweet after posting a new item' ) ) , // Requires Firesphere/silverstripe-social NumericField :: create ( 'PostsPerPage' , _t ( 'NewsSiteConfigExtension.PPP' , 'Amount of posts per page' ) ) , UploadField :: create ( 'DefaultImage' , _t ( 'NewsSiteConfigExtension.DEFAULTIMPRESSION' , 'Default impression image for newsitems' ) ) ) ; }
Setup the tabs for the user
All return a Tab.
Setup the tabs for the user All return a Tab .