Where does the "Book now" button in the SearchApp go?
On a search page of the SearchApp type, every result has a button. Where that button goes depends on the sector you chose when migrating.
| Sector | Button | Goes to |
|---|---|---|
| Meeting rooms and Boat rental | Book now | The calendar page (mod=calendar) with the chosen object, on the chosen date and times. |
| Combi (packages) | Check availability | The calendar page (mod=calendar) with the chosen package, on the chosen date. |
| Events | Enrol | The event detail page (mod=viewevent). |
Has the visitor not chosen a date and time yet? Then the button says “Choose a date and time first” (for Combi: “Choose a date first”) and cannot be clicked yet. The button texts follow the language of the page.
Hiding the calendar above the Booking details block (advice)
For Meeting rooms, Boat rental and Combi the visitor lands on the calendar page, with the Booking details block below it. Because the date has already been chosen on the search page, you can hide the calendar:
- Go to Configuration > Front pages > Booking dialog > Calendar page.
- In the calendar configuration you use, set Hide calendar to Yes.
The visitor then sees the Booking details block straight away. If you leave it at No, the visitor also sees the calendar and can still pick another day there. Both work.
Using a different calendar configuration
If you fill in nothing, the button opens the first calendar configuration of your licence. Do you have several calendar configurations and want to use a specific one?
- Go to Configuration > Front pages > Booking dialog > Search page.
- Click Edit JS for the SearchApp configuration.
- At the top, fill in the number of the calendar configuration in
var bookingConfigId = '';, for examplevar bookingConfigId = '12345';. You find the number via Configuration > Front pages > Booking dialog > Calendar page: hover over the description of the configuration in the list. - Click Save and close.
Going to the object detail page instead?
Do you want “Book now” to open a detail page of the object?
- Set up the detail page via Configuration > Front pages > Helper pages > the detail page of your object type (for meeting rooms: room type detail) > Add new config. Fill in a block with the details of the object for each active language.
- Go to Configuration > Front pages > Booking dialog > Search page and click Edit JS for the SearchApp configuration.
- Find the function
buildObjectUrl. It contains:var params = [ 'mod=calendar', 'product=' + encodeURIComponent(objectId), 'lang={currentlang}' ];Replace this with:var params = [ 'mod=objects', 'id=' + encodeURIComponent(objectId), 'lang={currentlang}' ]; - Click Save and close.
“Book now” now opens the detail page of the object, with the chosen date and times in the link.


