dev-master
9999999-devSymfony WXRContentBundle
MIT
The Requires
- php >=5.3.3
- symfony/framework-bundle ~2.1
- wxr/category-bundle *
content wxr
v2.1.0
2.1.0.0Symfony WXRContentBundle
MIT
The Requires
content wxr
Symfony WXRContentBundle
Nothing special., (*1)
WXRContentBundle doesn't require any configuration., (*2)
``` yaml wxr_content: twig: extension: render: default_template: WXRContentBundle::contents.html.twig, (*3)
Twig extension -------------- WXRContentBundle comes with the `wxr_content_render` twig function. Display contents where "example" is content's name, tag's name or tag's slug: ``` twig {{ wxr_content_render("example") }}
Display content by content's name:, (*4)
``` twig {{ wxr_content_render({ name: content_name }) }}, (*5)
Display contents by tag's name: ``` twig {{ wxr_content_render({ "tag.name": tag_name }) }}
Display contents by tag's slug:, (*6)
``` twig {{ wxr_content_render({ "tag.slug": tag_slug }) }}, (*7)
Display content or array of contents: ``` twig {{ wxr_content_render(some_contents) }}
Contents will be rendered by the default template (see Configuration). To override default template, pass it as second parameter:, (*8)
twig
{{ wxr_content_render(some_contents, 'WXRContentBundle::raw.html.twig') }}
, (*9)
Symfony WXRContentBundle
MIT
content wxr
Symfony WXRContentBundle
MIT
content wxr