Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sunadarake/sculpinrelatedpostsbundle
- Owner: sunadarake
- License: mit
- Created: 2021-03-11T10:35:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-13T08:02:02.000Z (over 3 years ago)
- Last Synced: 2024-07-25T19:43:00.548Z (4 months ago)
- Topics: sculpin, sculpin-bundle
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 %}
{% endfor %}
{% endif %}
```
The above code will be output as follows
```html
- The 10 most useful PHP array functions
- How to use PHP libraries by composer
- How Zend Engine works
- PHP history from 2000 to 2021
- Tutorial: Debuggin in PHP
```
## 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
```