Netwerkstatt\Onepage\Extensions\OnePageSlide
Synopsis
class OnePageSlide
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static array $background_color_palette = ;
- private static array $heading_color_palette = ;
- private static array $text_color_palette = ;
- private static bool $do_modify_link = true;
- private static bool $use_only_on_onepage_slides = false;
- private static bool $colors_can_be_empty = false;
- // methods
- public void updateFieldLabels()
- public void updateCMSFields()
- protected void generateColorPalette()
- public string getOnePageSlideStyle()
- public void contentcontrollerInit()
- public void updateRelativeLink()
- public mixed UnmodifiedRelativeLink()
- public bool isOnePageSlide()
- public bool isNestedOnePageSlide()
- public bool isCMSPreview()
- public DBHTMLText getOnePageContent()
- public string getOnePageTemplateSuffix()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Tasks
Line | Task |
---|---|
149+ | : use customCSS? |
Members
private
- $background_color_palette
- $colors_can_be_empty
—
Netwerkstatt\Onepage\Extensions\bool
do not require colors to be set - $db
- $do_modify_link
—
Netwerkstatt\Onepage\Extensions\bool
Should we modify the link to represent anchors? - $has_one
- $heading_color_palette
- $owns
- $text_color_palette
- $use_only_on_onepage_slides
—
Netwerkstatt\Onepage\Extensions\bool
limit the generated form fields to slides (direct children of a OnePageHolder)
Methods
protected
public
- UnmodifiedRelativeLink() — Helper to get a unmofified link if a slide should represent a classical page, not a "block" inside a OnePageHolder
- contentcontrollerInit() — get's fired on ContentController::init()
- getOnePageContent() — renders the current page using the ClassName_onepage template, e.g. Page_onepage
- getOnePageSlideStyle()
- getOnePageTemplateSuffix() — Helper function to generate the template suffix for the current page.
- isCMSPreview() — Helper to check if we're previewing the current page in CMS
- isNestedOnePageSlide() — Checks if the current page is a nested one-page slide
- isOnePageSlide() — Checks, if the current page is a slide of a one-page by checking if the parent page is a OnePageHolder
- updateCMSFields()
- updateFieldLabels()
- updateRelativeLink() — Updates RelativeLink()