arfaram / ezplatform-drafts-tools
Access to all users drafts
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:ezplatform-bundle
Requires
- php: ^7.3
- ext-json: *
- ezsystems/ezplatform-admin-ui: ^2.0
- ezsystems/ezplatform-kernel: ^1.0
Requires (Dev)
- ezsystems/ez-support-tools: ^2.0
- ezsystems/ezplatform-code-style: ^0.1.0
- friendsofphp/php-cs-fixer: ^2.16.0
README
Drafts Tools Bundle
This bundle allows you to have access to all user drafts by adding a new API layer. eZPlatform is designed to get only access to drafts for current logged in user over the public API. The Rest API operating on top is requiring additional user token to have access though.
Requirement
- eZPlatform by Ibexa 3.x +
- PHP 7.3+
Features
- Access to private drafts in the everyone dashboard block
- All draft tab contains information about future draft location(s)
- Custom policy to access the new tab
Installation
composer require arfaram/ezplatform-drafts-tools
- Activate the Bundle in bundles.php
return
[
//...
EzPlatform\DraftsToolsBundle\EzPlatformDraftsToolsBundle::class => ['all' => true],
Usage
User must have below both policies to access the All drafts
Tab:
- Content / Versionread
- Drafts Tools / All Dashboard Tab
Default pagination value ist set to 25. You can amend this value from the services.yaml e.g:
parameters:
pagination.dashboard_all_drafts_limit: XX
Future Features
- Publish drafts from the Dashboard
- Pagination value in User settings(individual) or add new policies attribute(Global per User group)
- Preview draft link for external user
- Rest API endpoint
Contributions are welcome