1 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
15th Plone Conference Barcelona, Catalonia, Spain 2017
Blocks: Utilizing The Screed Under Mosaic to build sites Jens W. Klein 18.10.2017
twitter: @yenzenz
[email protected] http://kleinundpartner.at 2 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
bruck s n n I t a print Ad: S y t i C Alpine 17
6th 20 2 o t h y 22t Januar too! 4 e p o hing, Z t a s i MARS
I'am ...
●
Jens KLEIN
●
located in Innsbruck, Tyrol, Austria
●
doing Plone since version 1.0,
●
a consultant, developer, open source lover,
●
owner of Klein & Partner KG, co-founder and member of BlueDynamics Alliance,
●
member of Plone Foundation,
●
member of framework- and security-team
3 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
TOC ●
short Mosaic introduction
●
create and re-use content layouts
●
introduction to tiles - how to implement tiles
●
introduction into site-layouts
●
layout-behavior explained into detail
●
rendering process of a mosaic site
●
subrequests briefly explained
●
packages behind mosaic
●
some examples made with Mosaic 4 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
All Code Available at
https://github.com/bluedynamics/ kup.bsp.mosaic (in on line)
5 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
LIVE DEMO
Brief Live Intro Into Mosaic Store Created Content Layout for reusability
6 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Tiles
Two types of Tiles: ●
view-like tiles just showing something
●
tiles with schema and own storage
7 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
LIVE DEMO
Simple Tile displaying a random number Tickerline tile with two fields
8 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Site Layouts ●
●
replacement for main-template. Similar to content layouts, different lookup mechanism,
●
different site-layouts per sections possible,
●
very flexible.
9 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
LIVE DEMO
Show how to enable and register a site-layout
10 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Layout behavior ●
●
fields with content specific selected or customized content layout fields with content specific selected site or sections site layouts.
→ LIVE DEMO
11 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Rendering Process of a Mosaic Site ●
Tiles are rendered at end of request in transformchain
●
First, reponse body is parsed by lxml
●
Second, panel merging takes place,
●
Third, tiles are rendered via subrequests,
●
Fourth, ESI post-processing happens,
●
Finally, the site is passed over to Diazo and gets published.
12 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Subrequests ●
some magic happens
●
Clone of main request with all data copied
●
executes request within current process
●
new traversal and call with all steps for publication, creating and returning a response object.
13 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Packages behind Mosaic ●
plone.app.mosaic
●
plone.app.blocks
●
plone.tiles
●
plone.app.tiles
●
plone.app.standardtiles
●
plone.app.drafts
14 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
LIVE DEMO ●
Sites using Mosaic
15 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.
Questions? 16 von 16
Text: Creative Commons Namensnennung-Keine kommerzielle Nutzung- Keine Bearbeitung 3.0 Österreich Lizenz.