Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A card gallery is a data control that displays data from a table and view in cards. You can use design studio or Liquid code to add, style, and configure a card gallery in Power Pages sites.
Add a card gallery
To add a card gallery with design studio:
Open the design studio to edit the content and components of the site.
Tip
You can also add a card gallery using code.
Go to the Pages workspace.
Select the page you want to edit.
Select the section where you want to add the card gallery.
Hover over any editable canvas area, then select the Card gallery icon from the component panel.
Choose a layout
Select the Card gallery design button to choose from any of the four available layouts.
You can also choose from existing card galleries if they're available.
Configure your card gallery's data source
To configure your card gallery's data source:
Select the Card gallery design button and choose Data.
Select an existing table from the Data source lookup field.
Select a corresponding view from the View dropdown.
For each card gallery element (image, title, description, button, text hyperlink), choose the Select data option to bind it to a view column.
Note
For button and hyperlink elements, you need to configure two settings: name and url. Both configurations must be bound to a view column.
Disable the toggle switch next to any element you don't want to include.
You can rearrange each element's position by selecting the icon to the left of the toggle switch and dragging the element to the desired position.
Supported column types
Each element supports specific data types.
Supported column types
Each element supports specific data types.
Element | Data type(s) |
---|---|
Title | Text (single line of text) Phone Whole Number Decimal Look up Date only Date and time |
Description | Rich Text Text Area (multiple lines of text) Phone Whole Number Decimal Date only Date and time |
Image | File - Image |
Button | Button label:
Button URL:
|
Text Hyperlink | Text hyperlink label:
Text hyperlink URL:
|
Custom text | Text (single line of text) |
Style and configure your card gallery
You can style your card gallery by configuring style properties at the gallery, card, and element level.
Search filtering
Turn on/off the Enable search toggle to add or remove search filtering.
Preview your card gallery
After you configure your card gallery, you can see the preview on canvas with sample data.
Note
You must set table permissions to allow site visitors to view and interact with your card gallery.
Add a card gallery using code
You can also use Liquid to edit your card gallery.
Add a new card gallery
To add a new card gallery without any data binding or configuration, use the following liquid tag:
{% codecomponent name:Pages.CardGallery %}
Add an existing card gallery
To add an existing card gallery, use the Liquid tag and replace {your card gallery id}
with the id for the existing card gallery:
{% codecomponent name:Pages.CardGallery id: '{your card gallery id}' %}