Skip to end of banner
Go to start of banner

How to declare your Narrative Layout Blocks

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

Before you can start configuring your Narratives, you need first to declare all your Layout Blocks.

The Layout Blocks are the building blocks of your Narrative (the narrative defines what should be the layout of a page based on these building blocks and what should be the parameter values for each of the selected Layout blocks).

For example, if you want to create a Narrative with this layout, you will need to define 4 Layout Blocks:

  1. Title

  2. Banner

  3. Product Slider

  4. Product

Each Layout Block will need to have a definition of what parameters it needs to receive so it can be rendered.

This definition is very open and is defined by a JSON SCHEMA which needs to be compatible with the JDORN-EDITOR, you can see a demo here: http://jeremydorn.com/json-editor/

We recommend you to use this demo link to define your JSON SCHEMA for each Layout Block so that you can be sure your JSON is correct and will work.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.