Skip to content

Commit

Permalink
Update README with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Mar 17, 2024
1 parent 98f57aa commit 46b6a7a
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,48 @@
# Sylius Cms Block Plugin

## Example

### Admin list

Manage your block in admin

![Grid of blocks in Sylius admin](images/blocks-list.jpg)

### Admin form

Manage the content of your block, you can decide to disable or enable it to display it anywhere you used it.

![Form of a block in Sylius Admin](images/block-form.jpg)

### Include it in your content

For example in your [Homepage](https://github.com/monsieurbiz/SyliusHomepagePlugin) ou [CMS Page](https://github.com/monsieurbiz/SyliusCmsPagePlugin/) !

![Block included in a homepage content](images/block-included.jpg)

By using `block` element in your [Rich Editor](https://github.com/monsieurbiz/SyliusRichEditorPlugin/).

![Block element in rich editor](images/block-ui-element.jpg)

Chose the block you want to include in your content.

![Block element in rich editor](images/choose-block.jpg)

### Displays in front

You can use it in multiple places, it will shown the same content everywhere.

![Block displayed in front](images/block-front.jpg)

If you disable the block, it will not be displayed anymore.

## Installation

TBD
Run the recipe and run migrations

```
console doctrine:migrations:migrate -n
```

## License

Expand Down
Binary file added images/block-form.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/block-front.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/block-included.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/block-ui-element.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blocks-list.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/choose-block.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46b6a7a

Please sign in to comment.