Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 980 Bytes

usage.md

File metadata and controls

31 lines (21 loc) · 980 Bytes

Usage

For the administration you will have the Blog menu. And for the frontend you can go to the /{locale}/blog/articles to see the blog articles. Feel free to modify the plugin templates like you want.

Partial routes

To render a list of latest articles you can do something like this:

{{ render(url('odiseo_sylius_blog_plugin_shop_partial_article_index_latest', {'count': 4, 'template': '@OdiseoSyliusBlogPlugin/Shop/Article/_latest.html.twig'})) }}

And to render a list of categories:

{{ render(url('odiseo_sylius_blog_plugin_shop_partial_article_category_index', {'template': '@OdiseoSyliusBlogPlugin/Shop/ArticleCategory/_verticalMenu.html.twig'})) }}

Form validation group

For forms use the validation group named odiseo

This plugin comes with Disqus support. You can enable it adding the following configuration:

# config/packages/odiseo_sylius_blog.yaml
odiseo_sylius_blog:
    disqus:
        shortname: EDITME