2017 © Pedro Peláez
 

symfony-bundle content-bundle

Symfony WXRContentBundle

image

wxr/content-bundle

Symfony WXRContentBundle

  • Tuesday, October 15, 2013
  • by Ascarius
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WXRContentBundle

Installation

Nothing special., (*1)

Configuration

WXRContentBundle doesn't require any configuration., (*2)

Default configuration

``` 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)

The Versions

15/10 2013

dev-master

9999999-dev

Symfony WXRContentBundle

  Sources   Download

MIT

The Requires

 

content wxr

14/11 2012

v2.1.0

2.1.0.0

Symfony WXRContentBundle

  Sources   Download

MIT

The Requires

 

content wxr