readMoreActionData


readMoreActionDataunion

Sets or gets the data object of the read more action for the collapsible text.

Setting the readMoreActionData property sets the data object of the read more action for the collapsible text. When a site visitor wants to read more, the collapsible text can handle the remaining text in 2 ways, 'ExpandOnCurrentPage' or 'LinkToContent', defined in the readMoreActionType property.

For each readMoreActionType there is a readMoreActionData property. The readMoreActionData property contains a data object which allows you to define the relevant settings for the selected readMoreActionType. Set the following data object values for the readMoreActionType you selected:

ExpandOnCurrentPage

  • readMoreButtonText: Text of the read more button.
  • readLessButtonText: Text of the read less button.
  • collapsed: Whether the collapsible text is currently collapsed.

LinkToContent

  • link: Required. Link for the remaining content. Supports all link types.
  • target: Determines where the link opens.
  • readMoreButtonVisible: Whether the read more button is visible. If true, the button links to the remaining content link. If false, the introductory text links to the remaining content link. Defaults to false.
  • readMoreButtonText: Text of the read more button.

Note: If the readMoreActionType is 'LinkToContent', you must set the link in the LinkToContent object.

Getting the readMoreActionData property gets the data object of the read more action for the collapsible text. Get the data object relevant for the selected readMoreActionType.

Did this help?