PHPackages                             derhaeuptling/regiondo-contao-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. derhaeuptling/regiondo-contao-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

derhaeuptling/regiondo-contao-bundle
====================================

Regiondo bundle integration for Contao Open Source CMS

1.3.3(6y ago)243MITPHPPHP ^7.1

Since Jul 30Pushed 6y ago2 watchersCompare

[ Source](https://github.com/derhaeuptling/regiondo-contao-bundle)[ Packagist](https://packagist.org/packages/derhaeuptling/regiondo-contao-bundle)[ RSS](/packages/derhaeuptling-regiondo-contao-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (8)Versions (16)Used By (0)

Regiondo Bundle for Contao Open Source CMS
==========================================

[](#regiondo-bundle-for-contao-open-source-cms)

The bundle provides the Regiondo integration with Contao.

As of now the bundle offers the following:

1. Regiondo product/events synchronization with calendar events.
2. Iframe booking widget content element.
3. Cart widget frontend module.

The custom booking widget, cart and checkout modules are planned for the future.

Installation
------------

[](#installation)

Execute the following command in your Contao 4 project folder:

```
$ composer require derhaeuptling/regiondo-bundle

```

Then run the Contao install tool to update the database.

Configuration
-------------

[](#configuration)

Once you have installed the bundle, add the below configuration to your `app/config/config.yml` file.

The Regiondo keys can be obtained in Regiondo control panel in the `Shop Configuration > Website Integration > Api Configuration` section.

```
derhaeuptling_regiondo:
    public_key: 'DE123456789' # The Regiondo public key
    secure_key: '123456789' # The Regiondo secure key
    vendor: 'foobar' # The Regiondo vendor name
    assets_folder: 'files/regiondo_events' # Target folder where event images will be downloaded to
    sandbox: true # Enable/disable the sandbox mode (optional, defaults to false)
    debug: '%kernel.debug%' # Enable/disable the debug mode (optional, defaults to false)
    widget_base_url: 'https://foobar.regiondo.com/' # The custom base URL of the iframe widgets (optional)
```

### Improve performance with cache

[](#improve-performance-with-cache)

You can improve the backend performance by adding the cache provider that will handle some repeating API requests. In order to do that, require the `doctrine/doctrine-cache-bundle` dependency and adjust the configuration of your app:

```
derhaeuptling_regiondo:
    ...
    cache_provider: 'doctrine_cache.providers.app_regiondo_cache'
    ...

doctrine_cache:
    providers:
        app_regiondo_cache:
            type: file_system
            file_system:
                extension: ".cache"
                directory: "%kernel.cache_dir%/app/regiondo"
```

Pass values to booking iframe widget with URL hash
--------------------------------------------------

[](#pass-values-to-booking-iframe-widget-with-url-hash)

The widget inside booking iframe content element can have preselected values using the hash. This is especially useful if you want to redirect the user to the booking page directly from the event list or calendar view.

You can append the URL hash to the event link as shown in the example of `event_list` template:

```
…
