2017 © Pedro Peláez
 

symfony-bundle sculpin-related-content-bundle

Sculpin Bundle to generate related content data

image

wjzijderveld/sculpin-related-content-bundle

Sculpin Bundle to generate related content data

  • Thursday, July 31, 2014
  • by wjzijderveld
  • Repository
  • 1 Watchers
  • 4 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Sculpin RelatedContentBundle

This Bundle is written to work with Sculpin., (*1)

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., (*2)

First you need to set some tags on you content:, (*3)

---
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:, (*4)

---
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):, (*5)

{% if related_content|length %}
    <div class="related">
        {% for item in related_content %}
            <a href="{{ item.url }}">{{ item.title }}</a>
        {% endfor %}
    </div>
{% endif %}

The Versions

31/07 2014

dev-master

9999999-dev

Sculpin Bundle to generate related content data

  Sources   Download

MIT

The Requires

 

by Willem-Jan Zijderveld

bundle content static related sculpin

31/07 2014

1.x-dev

1.9999999.9999999.9999999-dev

Sculpin Bundle to generate related content data

  Sources   Download

MIT

The Requires

 

by Willem-Jan Zijderveld

bundle content static related sculpin

31/07 2014

1.0.1

1.0.1.0

Sculpin Bundle to generate related content data

  Sources   Download

MIT

The Requires

 

by Willem-Jan Zijderveld

bundle content static related sculpin

31/07 2014

1.0.0

1.0.0.0

Sculpin Bundle to generate related content data

  Sources   Download

MIT

The Requires

 

by Willem-Jan Zijderveld

bundle content static related sculpin

09/03 2014

v1.0.0-alpha1

1.0.0.0-alpha1

Sculpin Bundle to generate related content data

  Sources   Download

MIT

The Requires

 

by Willem-Jan Zijderveld

bundle content static related sculpin