Schema drug tags do not have help texts.

Created on 29 October 2024, 7 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.

  • 🇺🇸United States damienmckenna NH, USA
  • @valeriasalis opened merge request.
  • Status changed to Fixed 20 days ago
  • 🇺🇸United States natemow

    Added to 3.1 release, thanks.

  • 🇺🇸United States natemow
  • 🇨🇦Canada joseph.olstad

    @natemow, as a maintainer it is your responsibility to check the box next to the contributors name at the bottom of issues marked as "Fixed".

    • valeriasalis 1 patches attached 2 comments made
    • natemow at Interactive Strategies 2 comments made
    • damienmckenna at Third and Grove

    Please look for these account names in this issue, put a checkbox beside them, so they get credit for their contribution!

    What this does is re-enforce the desire to contribute and it helps us identify who is actively contributing to Drupal!

Production build 0.71.5 2024