nextbox / neos-qrcode
NextBox Neos Qr-Code generator
Installs: 1 388
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-plugin
Requires
- php: >=8.1
- endroid/qr-code: ~4.8.2
- neos/neos: *
- nextbox/neos-urlshortener: ^1.1.0
README
This package creates QR-Codes for shortened urls in Neos. Note this package requires nextbox/neos-qrcode
.
If the shortened url was changed then the persisted QrCode will be regenerated immediately, the old image will be deleted.
Configuration
Follow the steps in the ReadMe of the package nextbox/neos-qrcode
to create your own definition for short url redirections.
Routing
Create a new Routes.yaml
with the name of the type that should be used:
# Configuration/Routes.yaml - name: 'Create QR-Code for default' uriPattern: 'qr-code/{shortIdentifier}' # replace `qr-code` with your preferences defaults: '@package': 'NextBox.Neos.QrCode' '@controller': 'QrCode' '@action': 'generateQrCode' 'shortType': 'default' # change this to the name of the type from the settings appendExceedingArguments: true httpMethods: ['GET']
Disable Image Generation from the Backend
If you want to disable the image generation from the backend disable the following settings. After a Node was published the resource will be deleted.
# Settings.yaml NextBox: Neos: QrCode: backend: # Should QR-Codes be generated from the backend after a node publish? generateQrCodesFromBackend: false
Extensibility
Follow the steps in the ReadMe of the package nextbox/neos-qrcode
to create your own definition for short url redirections.
The QrCode-Controller uses the identifier and the type to get the shortened url.