5.13.3 • Published 3 years ago

@mentor-medier/byline-block v5.13.3

Weekly downloads
275
License
CC-BY-NC-ND-4.0
Repository
github
Last release
3 years ago

@wpmedia/byline-block

Byline block for Fusion News Theme

Acceptance Criteria

  • 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 no authors, it will return null.

Props

PropRequiredTypeDescription
required propyes
optional propno
contentConfig examplePlease specify which content sources are compatible

ANS Schema

The Byline Block expects the credits section from Composer's ANS schema, which is laid out as

credits: {
    by: [{
        name: ...
        url: ...
        ...
    }]
}

ANS Fields

  • credits.by

Internationalization fields

Phrase keyDefault (English)
byline-block.by-textBy
byline-block.and-textand

Events

Blocks can emit events. The following is a list of events that are emitted by this block.

Event NameDescription
eventNameDescribe the event

Event Listening

Include block specific instructions for event listening.

OR

This block does not emit any events.

Additional Considerations

This is optional. Please add an additional context that would be important to know in order to use this block.

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 no authors, it will return null.

5.13.2

3 years ago

5.13.3

3 years ago

5.11.3

3 years ago

5.11.2

3 years ago

5.10.4

3 years ago

5.10.2

3 years ago

5.10.0

3 years ago

5.9.15

3 years ago