\NewsSiteConfigExtension
Add some settings to the siteconfig. Pretty easy, right?
- Author: Sphere
Synopsis
class NewsSiteConfigExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- private static array $config_tabs = ;
- private static array $admin_tabs = ;
- private static string $uploads_folder = 'news';
- // methods
- public void updateCMSFields()
- protected void NewsTab()
- protected void ExternalTab()
- protected void CommentTab()
- protected void SlideshowTab()
- protected void HelpTab()
- protected void URLMappingTab()
- protected void SecurityTab()
- public void onBeforeWrite()
- public string getRootFolderName()
Hierarchy
Extends
- DataExtension
Tasks
Line | Task |
---|---|
49+ | Work this out a bit better. |
49+ | fix the fieldlabels StartGeneratedWithDataObjectAnnotator |
196 | use display logic to hide stuff when slideshow is disabled |
Members
private
- $admin_tabs — array
- $config_tabs — array
- $db — array
- $defaults
- $has_one — array
- $uploads_folder
—
string
A foldername relative to /assets, where all uploaded files are stored by default.
Methods
protected
- CommentTab()
- ExternalTab()
- HelpTab()
- NewsTab() — Setup the tabs for the user All return a Tab.
- SecurityTab()
- SlideshowTab()
- URLMappingTab() — Setup the Admin-only tabs.
public
- getRootFolderName() — Returns the folder name where to store all news stuff relative to /assets/ directory.
- onBeforeWrite() — Make sure the chosen action by the user is safe for usage.
- updateCMSFields() — Update the SiteConfig with the news-settings.