Skip to content

Commit

Permalink
📝 Improved Readme
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Nov 24, 2023
1 parent 003e660 commit b54f2dc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ composer require bnomei/kirby-blueprints

This plugin introduces two new ways to define blueprints for Kirby.

<div>
<div style="width: 50%; float: left; padding-right: 1vw;">

### Fluent & Named Helper Classes
Expand All @@ -54,16 +55,17 @@ Define blueprints for pages in PageModels and use public properties with PHP att

**site/plugins/example/models/ArticlePage.php**
```php
#[
Label([
'en' => 'Introduction',
'de' => 'Einleitung',
]),
Type(FieldTypes::TEXT),
]
public Field $introduction;
#[
Label([
'en' => 'Introduction',
'de' => 'Einleitung',
]),
Type(FieldTypes::TEXT),
]
public Field $introduction;
```
</div>
</div>

## Blueprint definitions from Files

Expand Down

0 comments on commit b54f2dc

Please sign in to comment.