recranet / craft-recranet-booking
Synchronizes various Recranet Booking sources to Craft CMS
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 5
Type:craft-plugin
Requires
- php: >=8.2
- craftcms/cms: ^5.7.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
README
Synchronizes various Recranet Booking sources to Craft CMS
Features
- Synchronizes facilities, accommodations, locality categories accommodation categories and package specification categories from Recranet Booking to Craft CMS.
- Supports custom fields for facilities, accommodation categories, locality categories and package specification categories.
- Generates an accommodation sitemap.xml route
- Stores the organization ID and 'reservation' page in the Craft CMS settings for easy access.
- Exposes accommodations in twig templates via the
craft.accommodations()
variable.
Requirements
This plugin requires Craft CMS 5.7.0 or later, and PHP 8.2 or later.
Installation
composer require recranet/craft-recranet-booking && php craft plugin/install _recranet-booking
Commands
You can run the following command to synchronize the different sources:
php craft _recranet-booking/facilities php craft _recranet-booking/accommodations php craft _recranet-booking/locality-category php craft _recranet-booking/accommodation-category php craft _recranet-booking/package-specification-category
You can run the following command to delete the different sources:
php craft _recranet-booking/facilities/delete-all php craft _recranet-booking/accommodations/delete-all php craft _recranet-booking/locality-category/delete-all php craft _recranet-booking/accommodation-category/delete-all php craft _recranet-booking/package-specification-category/delete-all
Variables
You can run the use the following variables in your templates to access the data:
{{ craft.recranetBooking.organizationId }}