Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunadarake/sculpinrelatedpostsbundle

3rd party Sculpin bundle that creates related posts
https://github.com/sunadarake/sculpinrelatedpostsbundle

sculpin sculpin-bundle

Last synced: 3 days ago
JSON representation

3rd party Sculpin bundle that creates related posts

Awesome Lists containing this project

README

        

# Sculpin Related Posts By Taxonomy Bundle

3rd party Sculpin Bunlde that creates related posts in sculpin blog.

## Setup

The recommended way to install this bundle is throught Composer.

```
composer require sunadarake/sculpin-related-posts-bundle
```

Add this bundle in your `app/SculpinKernel.php` file.

```php

{% for related in page.related %}

  • {{ related.title }}

  • {% endfor %}

    {% endif %}
    ```
    The above code will be output as follows

    ```html


    ```

    ## Config max_per_page

    If you want to change the number of related posts, config `max_per_page` in `app/config/sculpin_kernel.yml`. (The default max_per_page is 5)

    ```
    sculpin_content_types:
    posts:
    permalink: pretty
    sculpin_related_posts:
    max_per_page: 3
    ```