Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mentor-medier/article-tag-block

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mentor-medier/article-tag-block

Fusion Article Tag block

  • 5.13.3
  • latest
  • stable
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@wpmedia/article-tag-block

Fusion News Article Tags block

Acceptance Criteria

  • If there is a tags array, it will render anchor tags with href set to Tags Slug and clickable text set to Tag Text.
  • If there is a tags array and slug is missing for tags, it will render anchor tags with href set to '#' and clickable text set to Tag Text.
  • If the tags array is empty, it will not render anything.
  • If taxonomy section is missing, it will not render anything.

Props

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

ANS Schema

The Article Tag Block expects the taxonomy section from Composer's ANS schema, which is laid out as

taxonomy: {
          tags: [{
            description: "Tag-1 Description",
            slug: "Tag-1 Slug",
            text: "Tag-1 Text"
        }, {
            description: "Tag-2 Description",
            slug: "Tag-2 Slug",
            text: "Tag-2 Text"
        }]
      }

ANS Fields

  • taxonomy.tags[x].slug Detects for '#' as href for fallback
  • taxonomy.tags[x].text Required to be string
{
  taxonomy: {
    tags: [
      {
        slug: 'sportsball',
        text: 'Sports!'
      },
      {
        slug: '#',
        text: 'General'
      }
    ]
  }
}

Internationalization fields

  • Add all internationalization fields used in the block

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

Optional

FAQs

Package last updated on 05 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc