dev-master
9999999-devAdds a FlowLandingPage as a PageType.
BSD-3-Clause
The Requires
by Dunatron
silverstripe flow panels joy
Adds a FlowLandingPage as a PageType.
Panels with an image and text. full, half, third, and quarter panels that stretch the full width of their container, (*1)
composer require dunatron/joy-flow-panels
A new Page type gets created 'FlowLandingPage' this page type has a panel tab in the cms, where it will build Panels., (*2)
This does not do anything in the out of box template and is just used for reference by the user, (*3)
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)
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)
OPTIONS: full, half, third, quarter, (*9)
used to specify how much width the panel will consume within its container, (*10)
The background image used for the panel, (*11)
There are a few ways to do this., (*12)
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)
public function init() { parent::init(); Requirements::clear(); }
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)
Adds a FlowLandingPage as a PageType.
BSD-3-Clause
silverstripe flow panels joy