Grids
A grid represents a list of suppliers and inventory and exposes the details via an interactive, bookable, grid UI. The grid supports displaying any inventory from your curated list or saved search. A user interacts with a grid the same way she interacts with an individual card with one additional feature:
- Paginate through the grid by clicking the
Show more
button (when more items are available).
Above is an example of our grid showing a list of room type cards.
The rest of this article walks you through how to create, customize and expose the grid to your users.
Grid types
There are three types of grids:
- Grid based on a curated list.
- Grid based on a saved search.
- Grid grid based on a location and sort criteria (i.e. Ranked grid).
Curated list grid
This is a grid that uses the inventory you’ve collected in one of your curated lists and converts the list to bookable travel inventory you can show to your users.
Create
Navigate to Inventory > Curated Lists
from the top navigation bar. For this example, we will use your Favorites
list.
If you haven’t yet added anything to your Favorites
, go to Search to learn how.
- Click the
Actions
button on theFavorites
list. - Click the
Create a grid
button. - A new window will display, allowing you to name your grid. See below.
- Click
OK
button to continue.
Your grid has been created. Navigate to Tools > Grids
from the top navigation bar and click the Curated Grids
tab to see your new grid.
Customize
The form lets you customize your grid in the following ways:
- Give it a name for you to remember what the grid is about.
- Select the Customization you want to apply to this grid.
- Select the initial card face you want users to see first. By default, it is the native face of that inventory.
- Select the badge you want to use on the card. A badge lets users compare inventory on an aggregate metric such as
eco-friendly
. - Add keywords, separated by a comma, that will be used by Web Crawlers.
- Add titles and descriptions in the languages you want the user to see.
- Click the
Save
button to continue.
Share
Above shows you an image with all the available actions for your grid:
- Update Updates your grid configuration.
- Add to WinkLinks Adds the grid to your WinkLinks account.
- Embed Shows you how to embed this grid as a Grid into your website.
- Use with WordPress Shows you how to use our WordPress plugin to embed this grid into your website.
We cover some of these options, in more detail, below.
Embed
Here is how to embed your grid into your site:
- Line 3 shows you how to embed the Wink styles into your site.
- Lines 6 through 9 shows you how to use the wink-content-loader Web Component and tell it to fetch a grid for your code.
- Line 11 shows you how to embed our Javascript into your site.
- Line 13 shows you how to embed the wink-app-loader Web Component and tell it to fetch your page-level configuration preferences.
Saved search grid
This is a grid that uses the inventory in your saved search query and converts the search results to bookable travel inventory you can show to your users.
Create
Navigate to Inventory > Saved searches
from the top navigation bar.
If you haven’t yet created a saved search, go to Search to learn how.
- Click the
Actions
button on your saved search. - Click the
Create a grid
button. - A new window will display, allowing you to name your grid. See below.
- Click
OK
button to continue.
Your grid has been created. Navigate to Tools > Grids
from the top navigation bar and click the Saved Search Grids
tab to see your new grid.
Customize
The form lets you customize your grid in the following ways:
- Give it a name for you to remember what the grid is about.
- Select the Customization you want to apply to this grid.
- Select the initial card face you want users to see first. By default, it is the native face of that inventory.
- Select the badge you want to use on the card. A badge lets users compare inventory on an aggregate metric such as
eco-friendly
. - Add keywords, separated by a comma, that will be used by Web Crawlers.
- Add titles and descriptions in the languages you want the user to see.
- Click the
Save
button to continue.
Share
Embed
Here is how to embed your grid into your site:
- Line 3 shows you how to embed the Wink styles into your site.
- Lines 6 through 9 shows you how to use the wink-content-loader Web Component and tell it to fetch a grid for your code.
- Line 11 shows you how to embed our Javascript into your site.
- Line 13 shows you how to embed the wink-app-loader Web Component and tell it to fetch your page-level configuration preferences.
Ranked grid
Create
Create a ranked grid by navigating to Tools > Grids
and click on the Ranked Grid
tab. Click on the Create ranked grid
button.
Customize
The form lets you customize your ranked grid in the following ways:
- Choose a destination. E.g. Tokyo.
- Give it a name for you to remember what the grid is about. E.g. Eco-friendly hotels in Tokyo
- Select the Customization you want to apply to this grid.
- Select the initial card face you want users to see first. By default, it is the native face of that inventory.
- Choose what characteristic to sort properties by. E.g. Eco-friendliness.
- Add keywords, separated by a comma, that will be used by Web Crawlers.
- Add titles and descriptions in the languages you want the user to see.
- Click the
Save
button to continue.
After saving your ranked grid, you are redirected to your ranked grids page and your grid is now ready to be shared with the world.
Share
Above shows you an image with all the available actions for your rankd grid:
- Update Updates your grid configuration.
- Add to WinkLinks Adds the ranked grid to your WinkLinks account.
- Embed Shows you how to embed this grid as a Grid into your website.
- Use with WordPress Shows you how to use our WordPress plugin to embed this card into your website.
We cover some of these options, in more detail, below.
Embed
Here is how to embed your grid into your site:
- Line 3 shows you how to embed the Wink styles into your site.
- Lines 6 through 9 shows you how to use the wink-content-loader Web Component and tell it to fetch a ranked grid for your code.
- Line 11 shows you how to embed our Javascript into your site.
- Line 13 shows you how to embed the wink-app-loader Web Component and tell it to fetch your page-level configuration preferences.
API
Developers who want to manage grids can head over to Developers > API > Inventory.
Further reading
- Learn more about our collection of Web Components.
- Learn more about the Wink WordPress plugin.