Drupal
Это содержимое пока не доступно на вашем языке.
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.
wink-travel/wink-drupal-module on GitHub Source code, developer setup guide, and contribution instructions.
Requirements
Section titled “Requirements”- Drupal 10 or 11
- PHP 8.1+
- Composer
Install
Section titled “Install”- Install via Composer:
Terminal window composer require drupal/wink - Enable the module:
Terminal window drush en wink -y - Go to Admin → Configuration → Web Services → Wink Settings (
/admin/config/wink). - Enter your Client ID and Client Secret, select your environment, and click Save. Go to Applications to retrieve your credentials.
Add a block to a page
Section titled “Add a block to a page”- Go to Admin → Structure → Block Layout.
- Click Place block in the region where you want Wink content.
- 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
- For Wink Content, configure the Layout Type and Layout ID in the block settings.
- Save the block configuration.
Available blocks
Section titled “Available blocks”| Block | Purpose |
|---|---|
| Wink Content | Displays hotel cards, ranked grids, maps, and more |
| Wink Lookup | Search bar for destinations and hotels |
| Wink Search | Icon button that opens the itinerary picker |
| Wink Account | Sign-in / user account button |
| Wink Itinerary | Itinerary button showing the current trip |
| Wink Cart | Shopping cart summary button |