card-list-block
/
5.18.1-arc-themes-release-version-2.0.3.4583
card-list-block 5.18.1-arc-themes-release-version-2.0.3.4583
Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/card-list-block@5.18.1-arc-themes-release-version-2.0.3.4583
Install via package.json:
"@wpmedia/card-list-block": "5.18.1-arc-themes-release-version-2.0.3.4583"
About this version
Displays a list of stories where the first story is depicted as a card.
- It expects the user to configure its content source. The list of content source options will be those with an
ans-feed
schema. - The feature displays a card list with a custom title. The main story will have an overline, image, headline, byline block and publish date. Each story in the list will have a headline, and a smaller image.
- Makes use of ByLine to display authors of each story and ArticleDate to display the article's published date. These are included as dependencies.
- If there's one author, it will return
By <author>
- If there are two authors, it will return
By <author_0> and <author_1>
- If there are three or more authors, it will return with the pattern
By <author_0>, <author_1>, ... <author_(n-1)> and <author_(n)>
- If there's one author, it will return
Prop | Required | Type | Description |
---|---|---|---|
title | string | Used to add a title above the list items | |
offsetOverride | number | Story to start with | |
displayAmount | number | Amount of items to display |
The block relies on an ANS Data in the Feed format with the following fields:
content_elements[x].websites[arcSite].website_url
-
content_elements[0].credits.by
Check for multiple authors in first article -
content_elements[0].websites[arcSite]
Useswebsite_url
content_elements[0].headlines.basic
Details
- card-list-block
- WPMedia
- almost 2 years ago
- CC-BY-NC-ND-4.0
- 3 dependencies
Assets
- card-list-block-5.18.1-arc-themes-release-version-2.0.3.4583.tgz
Download activity
- Total downloads 200
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all- 5.18.1-arc-themes-release-version-2.5.0.4900
- 5.18.1-arc-themes-release-version-2.5.0.4896
- 5.18.1-arc-themes-release-version-1.33.3561
- 5.18.1-arc-themes-release-version-2.3.1.4873
- 5.18.1-arc-themes-release-version-2.3.0.4885
- 5.18.1-arc-themes-release-version-2.3.0.4856
- 5.18.1-arc-themes-release-version-2.1.4.4831
- 5.18.1-arc-themes-release-version-2.1.3.4787
- 5.18.1-arc-themes-release-version-2.1.3.4767
- 5.18.1-arc-themes-release-version-2.1.3.4756