fadriqueclickennet / blog-module
A blog module for ClickennetCMS.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:clickennet-module
Requires
- php: ^7.1.3
- composer/installers: ~1.0
- doctrine/dbal: ^2.6.3
- fadriqueclickennet/core-module: dev-master
- fadriqueclickennet/media-module: dev-master
- fadriqueclickennet/tag-module: dev-master
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.7
- fzaninotto/faker: ~1.5
- orchestra/testbench: 3.8.*
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-02-25 20:49:45 UTC
README
Usage
- You have to create a
blog.index
andblog.show
page in your front end theme. - You can link to the blog index page using :
route(locale() . '.blog')
- In the blog index you'll have access to a
$posts
variable on which you can loop - To create a link to a specific post:
route(locale() . '.blog.slug', [$post->slug])
- On the blog index and blog show pages you'll have access to a
$latestPosts
variable containing the latest posts, this amount can be configured in the admin. - On a post detail page, you can have access to the next and previous post by calling:
$post->present()->previous
$post->present()->next