\NewsCMSExtension
To clean up and make the News object cleaner.
Also, easier reading for functions etc.
It has no super powers.
- Author: Simon 'Sphere' StartGeneratedWithDataObjectAnnotator
Synopsis
class NewsCMSExtension
extends DataExtension
{
- // members
- protected array $type_array = ;
- protected array $field_list = ;
- // methods
- public void generateCMSFields()
- private void defaultFields()
- private void siteConfigFields()
- private void multipleNewsHolderPages()
- private void existingItem()
- private void displayLogic()
- private void createHelptab()
- private FieldList setupFields()
- private string getRootFolderName()
Hierarchy
Extends
- DataExtension
Members
protected
- $field_list
- $type_array
Methods
private
- createHelptab() — Create the HELP tab. This should be different, same as applies to other private functions that use $fields
- defaultFields() — Setup the default fields that are always available.
- displayLogic() — If UncleCheese's module Display Logic is available, upgrade the visible fields!
- existingItem() — Setup the fields that are visible ONLY when the item exists already.
- getRootFolderName() — Returns the folder name where to store all news stuff relative to /assets/ directory.
- multipleNewsHolderPages() — If there are multiple @link NewsHolderPage available, add the field for multiples.
- setupFields() — Setup the actual fieldlists and tabs.
- siteConfigFields() — Create the fields based on the SiteConfig settings.
public
- generateCMSFields() — Create the fieldlist in the admin