Skip to main content

Install WordPress Components

To set up the solution on your website, you will first need to install the necessary WordPress components. To start with, go to the admin section of your WordPress site. If you don't have one, refer to the WordPress article Build Your Website in Five Steps for guidance.

DataPress plugin

Go to the Plugins tab and click Add New Plugin. Search for Dataverse Integration (currently renamed to DataPress).

You require the Premium DataPress plugin extension. Follow the instructions how to Install Premium Features to enable it.

DataPress Plugin

Other plugins

Breeze is a WordPress Caching Plugin developed by Cloudways. Breeze uses advance caching systems to improve WordPress loading times.

Breeze Plugin

The use of this plugin is optional and depends on your specific requirements.

warning

If your caching provider allows varying cache by query string parameters, pp and past should be added to the list of parameters.

Templates

After setting up the plugin, download the Twig templates from GitHub and install them in the Twig Templates section of your WordPress site.

Go to Dataverse in the side menu → Settings. Find the Import Configuration Settings section, browse for the file you just downloaded, and click the Import button.

warning

Before performing this step, make sure you don’t have any custom templates you need to keep. The import action will overwrite all existing Twig templates.

The twig templates are stored under Dataverse → Templates → Twig Templates.

Twig templates Storage

WordPress Pages

Add required pages Available Events, Register and View Event

WordPress Pages

Include twig templates using the next code.

In the Available Events page:

{% include 'styles' %}
{% include 'page_list_events' %}

In the Register page:

{% include 'styles' %}
{% include 'register' %}

In the Thank You page:

{% include 'styles' %}
{% include 'page_thank_you' %}

In the View Event page:

{% include 'styles' %}
{% include 'page_view_event' %}

Page Binding

When you hover over the page name, a menu appears where you should click Configure Binding.

For the Register and View Event pages, set the parameters below and click Save afterward.

Settings:

  1. Choose an entity to bind to: 'Event (msevtmgt_event)'
  2. Choose how to bind the post: Via alternate key in query string
  3. Choose the alternate key: 'Readable Event ID (msevtmgt_readableeventid). Readable event ID: eventid

Then, return to the Dataverse Admin area and go to Binding → Page Binding. Under Choose post types to allow binding, check Pages. For the Event label, choose the View Event page.

Read more about binding WordPress pages to Dataverse tables using the DataPress plugin here.