Skip to content

Commit

Permalink
EZEE-2679: Block views priority (ibexa#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaK committed Jan 30, 2019
1 parent 5f75e58 commit 4edb55d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/guide/extending_page.md
Expand Up @@ -21,9 +21,11 @@
default:
template: 'blocks/template.html.twig'
name: 'Default view'
priority: -255
special:
template: 'blocks/special_template.html.twig'
name: 'Special view'
priority: 50
attributes:
name:
type: text
Expand Down Expand Up @@ -52,6 +54,14 @@

You can define multiple views for a block, with separate templates.

`priority` defines the order of block views on the block configuration screen.
The highest number will show first on the list.

!!! tip

Default views have a `priority` of -255.
It's good practice to keep the value between -255 and 255.

A block has a number of attributes, each with the following properties:

|||
Expand Down

0 comments on commit 4edb55d

Please sign in to comment.