Schema drug tags do not have help texts.

Created on 29 October 2024, 2 months ago

Problem/Motivation

All the fields under the Schema Drug do not have help texts. Help texts can be retrieved directly from the Schema.org website and they would make it easier for users to fill the needed properties.

Steps to reproduce

  1. Install the module and enable Schema Drug
  2. Add new content and search for the Schema Drug tab in the right sidebar, right under metatags, Url alias, etc.
  3. All the fields except @type do not have the help text

Proposed resolution

Starting from the property list here https://schema.org/Drug add the descriptions to the file doc such as:

/**
 * Provides a plugin for the 'activeIngredient' meta tag.
 *
 * @MetatagTag(
 *   id = "schema_drug_active_ingredient",
 *   label = @Translation("activeIngredient"),
 *   description = @Translation("An active ingredient, typically chemical compounds and/or biologic substances."),
 *   name = "activeIngredient",
 *   group = "schema_drug",
 *   weight = 20,
 *   type = "string",
 *   secure = FALSE,
 *   multiple = FALSE,
 * )
 */

Remaining tasks

User interface changes

Help texts will be added under each field.

API changes

N/A

Data model changes

N/A

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇮🇹Italy valeriasalis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024