Sari la conținut

Drupal

Acest conținut nu este încă disponibil în limba selectată.

The Wink Drupal Module adds Wink travel inventory components to your Drupal site as native blocks. Editors can place them anywhere in the layout via the standard block system.

  • Drupal 10 or 11
  • PHP 8.1+
  • Composer
  1. Install via Composer:
    Terminal window
    composer require drupal/wink
  2. Enable the module:
    Terminal window
    drush en wink -y
  3. Go to Admin → Configuration → Web Services → Wink Settings (/admin/config/wink).
  4. Enter your Client ID and Client Secret, select your environment, and click Save. Go to Applications to retrieve your credentials.
  1. Go to Admin → Structure → Block Layout.
  2. Click Place block in the region where you want Wink content.
  3. Search for Wink to find the available blocks:
    • Wink Content — renders a hotel card, grid, or map
    • Wink Lookup — destination search bar
    • Wink Search — itinerary picker button
    • Wink Account — sign-in button
    • Wink Itinerary — itinerary status button
    • Wink Cart — shopping cart button
  4. For Wink Content, configure the Layout Type and Layout ID in the block settings.
  5. Save the block configuration.
BlockPurpose
Wink ContentDisplays hotel cards, ranked grids, maps, and more
Wink LookupSearch bar for destinations and hotels
Wink SearchIcon button that opens the itinerary picker
Wink AccountSign-in / user account button
Wink ItineraryItinerary button showing the current trip
Wink CartShopping cart summary button