2017 © Pedro Peláez
 

silverstripe-module joy-flow-panels

Adds a FlowLandingPage as a PageType.

image

dunatron/joy-flow-panels

Adds a FlowLandingPage as a PageType.

  • Thursday, November 17, 2016
  • by Dunatron
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

joy-flow-panels

Panels with an image and text. full, half, third, and quarter panels that stretch the full width of their container, (*1)

installation

composer require dunatron/joy-flow-panels

What happens

A new Page type gets created 'FlowLandingPage' this page type has a panel tab in the cms, where it will build Panels., (*2)

CMS Use

Panel Title

This does not do anything in the out of box template and is just used for reference by the user, (*3)

Panel Text

The body of text contained within the panel. If the texts exceeds the height of the panel the overflow will scroll, meaning the text box is scrollable, (*4)

This field will take the entire url of the page it is linking to., (*5)

e.g. linking to 'about-us' page the value will be http://mysite/about-us, (*6)

Hash Color

This is the color of the panel, It will apply inline css to the template and can accept either hash or rgb colors, (*7)

e.g. #FF5733 OR rgb(255,87,51), (*8)

Panel Type

OPTIONS: full, half, third, quarter, (*9)

used to specify how much width the panel will consume within its container, (*10)

Panel Image

The background image used for the panel, (*11)

CSS Override

There are a few ways to do this., (*12)

1) new Page type.

Instead of extending FlowLandingPage_Controller like this, (*13)

MyLandingPage_Controller extends FlowLandingPage_Controller

(which includes the css). `You can extend extend off your base page controller instead e.g. Page_Controller, (*14)

2) clear your controller of requirements

public function init()
{
   parent::init();
   Requirements::clear();   
}

ToDo/Config

As it currently stands to get more functionality out of this page you would create your own page type extending FlowLandingPage. e.g. MyLandingPage extends FlowLandingPage., (*15)

I would like to add be able to apply these fields to any other page (some sort of extend in yml file), (*16)

The Versions

17/11 2016

dev-master

9999999-dev

Adds a FlowLandingPage as a PageType.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar Dunatron

silverstripe flow panels joy