|
A Carousel displays content items as a horizontal row within a collection. Readers can swipe through the items and tap an item to open the content it links to. Use it to group related articles, show recent news or provide links to other collections. You can also set the Carousel to advance automatically. |
|
Important To display a Carousel, the app must be built with Twixl Publisher 28.0 or later. The collection containing the Carousel must open in browse mode. |
To display a Carousel, the app must be built with Twixl Publisher 28.0 or later. The collection containing the Carousel must open in browse mode.
1. How the Carousel is displayed
A Carousel is a content item placed on the grid of a collection. It also contains its own content items, displayed on a horizontal grid inside the Carousel.
The styles therefore work at two levels.
- Item Style defines the size and placement of the Carousel in the containing collection’s grid style.
- Grid Style defines the horizontal grid inside the Carousel.
- Item style for content items defines the default style for the items inside the Carousel. You can override this style for an individual content item.
For example, a news Carousel can use one Item Style for articles with thumbnails and another for articles without thumbnails.
2. Creating a horizontal Grid Style
A Carousel requires a Grid Style with horizontal scrolling. You can reuse an existing horizontal Grid Style or create a new one.
- Go to Design > Grid Styles > Click '+'.
- Enter a Name under Metadata.
- Under Structure, click Set all to horizontal.
- Adjust the other design settings > click Save.
Set all to horizontal sets the scrolling direction for Phone, Tablet and Browser. The other design settings can be configured separately for each layout.
You can create different Grid Styles for different Carousels.
3. Adding a Carousel to a collection
- Go to Content > Collection > Select a Collection for the Carousel
- Click '+' next to Collection Content.
- Select the Components tab > Carousel > Click Add.
- Under Content to Upload > Change details > Click Save
The selected Item Style determines how much space the Carousel occupies in the collection’s grid.
|
Info Make sure the collection opens in browse mode! |
4. Selecting the Item styles
Open the Carousel item from the collection’s Recently Updated tab and go to Settings > Styling.
- Select the Item Style for the Carousel’s size and placement in the containing collection.
- Select the horizontal Grid Style for the content inside the Carousel.
- Select Item style for content items to set the default style for the items inside the Carousel.
You can override the default Item Style in the settings of an individual content item inside the Carousel (E.g. for content items with and without thumbnails to display in the same Carousel).
InfoIf a Grid style warning appears, check that the Carousel has a Grid Style with horizontal scrolling assigned to it. |
5. Setting the behavior
In the same Carousel’s Settings > Go to Behavior.
- Navigation Dots enables the navigation dots. Twixl determines the number of dots displayed.
- Automatic Rotation advances through the items automatically. When enabled, Rotation Interval lets you set the number of seconds between each rotation.
- These options can be enabled independently for each Carousel.
- Click Save.
6. Adding content items
Under Content Items, you can add the following types of links.
- Web Link opens a web page, such as a news article on your website.
- Content Item Alias links to an existing content item in your app.
- Collection Link opens another collection in your app.
How?
- Open the Carousel > Click '+'.
- Enter the URL('s) / Select the Content Item alias(') / Collection link(s) > Click Add.
- Click Save.
You can also add placeholder images or placeholder text via the Browse Grid Items tab.
7. Previewing and publishing
Preview the Carousel in the Twixl app with Show Unpublished enabled. Check its size in the collection, the appearance of its content items and the links.
Read more about previewing an app on a mobile device.
Publish the Carousel to make it available in the live app.