Skip to content

Commit

Permalink
Update app-blocks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Nov 19, 2018
1 parent d69f621 commit 03c2099
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/guide/app-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,21 @@ In order to extend a block with a special behaviour the `blockVariations` proper
]
],
```

Maybe the application block is now known inside the config files, then there is an alternative option to define block variations:

```php
'cmsadmin' => [
'class' => 'luya\cms\admin\Module',
'blockVariations' => [
'app\blocks\TextBlock' => [
'variation1' => [
'title' => 'Super Bold Text',
'vars' => ['cssClass' => 'bold-font-css-class'],
'cfgs' => [], // will be ignore as its empty, so you can also just remove this part.
'extras' => [], // will be ignore as its empty, so you can also just remove this part.
],
]
]
]
```

0 comments on commit 03c2099

Please sign in to comment.