Download the PHP package asgardcms/blog-module without Composer
On this page you can find all versions of the php package asgardcms/blog-module. 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 blog-module
Blog module
Installation
Module Download
Using AsgardCMS's module download command:
This will download the module and run its migrations .
This is the recommended way if you wish to customise the fields, views, etc.
Composer
Execute the following command in your terminal
composer require asgardcms/blog-module
This is if the contact module is perfect for your use-case as-is, and doesn't need any changes to fit your needs.
Note: After installation you'll have to give you the required permissions to get to the blog module pages in the backend.
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
Resources
- Contribute to AsgardCMS
- License
Info
All AsgardCMS modules respect Semantic Versioning.
All versions of blog-module with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
composer/installers Version ~1.0
idavoll/core-module Version ~3.0
idavoll/media-module Version ~3.0
idavoll/tag-module Version ~3.0
doctrine/dbal Version ^2.5
composer/installers Version ~1.0
idavoll/core-module Version ~3.0
idavoll/media-module Version ~3.0
idavoll/tag-module Version ~3.0
doctrine/dbal Version ^2.5
The package asgardcms/blog-module contains the following files
Loading the files please wait ....