1.0.1-alpha 2013-06-23 16:56 UTC


Simple Blog roll plugin for carew

BlogRoll plugin


This is my first carew plugin is a simple « Blog Roll » plugin.

This plugin let you create easily a list of link via the yaml config file of your carew application.

How to install it

A package is available on packagist in order to make it very simple for you to install.

All you have to do is to edit your composer.json file to add this requirement:

"bacardi55/carew-plugin-blogroll": "1.*dev"

Then, php composer.php update or php composer.php install depending on your case.

How to use it

Edit the carew config.yml file to enable the extension:

        - Carew\Plugin\BlogRoll\BlogRollExtension

Then, in the same file, you just need to add the list of links like this:


Last step, you need to put the following code in your twig file:

{% for blog in blogRoll %}
  <li><a href="{{ blog.url }}">{{ }}</a>
{% endfor %}

blogRoll is a variable that you can access in any twig template as soon as the extension is enabled.

Source code

You can find the code on github here.

The package can be found here on packagist.