Create Admin Grid for manage Post table "lopezpaul_blog_post" with columns:
- id
- title
- content
- is_draft
- created_at
- updated_at
- publish_at
composer require lopezpaul/magento2-blog
bin/magento module:enable LopezPaul_Blog
bin/magento setup:upgrade
Enter to admin panel and login and go to Content > LopezPaul > Blog
Search post You can use any filter and apply them to search Posts.
Permissions Create User roles with the right permissions.
- Magento_Backend
- Magento_Ui
You can create new Role to set the right permissions
Go to your magento <domain_url>/graphql
query{
posts{
id
title
content
is_draft
created_at
updated_at
publish_at
}
}
- Add images
- Show posts in the frontend