Download the PHP package wjzijderveld/sculpin-related-content-bundle without Composer
On this page you can find all versions of the php package wjzijderveld/sculpin-related-content-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package sculpin-related-content-bundle
Sculpin RelatedContentBundle
This Bundle is written to work with Sculpin.
Installation
Composer
$ composer require wjzijderveld/sculpin-related-content-bundle ~1.0
Usage
At this moment, the usage is pretty simple, but can be expanded later on. It works with Sculpin Taxonomy.
First you need to set some tags on you content:
---
title: Foo document
tags: [foo, bar]
---
On every document where you want to show related content, you define the tags to relate this content to:
---
title: Foobar Document
tags: [foo, bar, foobar]
related_content:
post_tags: [foo]
---
When you have done this, you can now use the related_content
variable in your
templates (in this example Twig):
{% if related_content|length %}
<div class="related">
{% for item in related_content %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% endfor %}
</div>
{% endif %}
All versions of sculpin-related-content-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
symfony/config Version ~2.1
symfony/dependency-injection Version ~2.1
symfony/http-kernel Version ~2.1
sculpin/sculpin Version ~2.0
symfony/config Version ~2.1
symfony/dependency-injection Version ~2.1
symfony/http-kernel Version ~2.1
sculpin/sculpin Version ~2.0
The package wjzijderveld/sculpin-related-content-bundle contains the following files
Loading the files please wait ....