Metadata Generation - NCIOCPL/cgov-digital-platform GitHub Wiki

Node Mappings (including video and infographic, not including PDQ)

og:title

  • maps to Browser title field

og:description

  • maps to Meta-Description

og:type

  • Default value set to "website"

og:url

  • Based on meta property=og:url
  • Use the Canonical URL (link rel="canonical") when the OpenGraph URL does not exist

og:sitename

  • Based on the site the user is on (need to figure out how this works for non www microsites). The site names should be:
    • Cancer.gov: National Cancer Institute
    • DCEG: Division of Cancer Epidemiology & Genetics - National Cancer Institute

twitter:card

  • Set to a default value of "summary" to twitter:card

PDQ Mappings (CIS and DIS)

og:title

  • maps to Page title (node title) field

og:description

  • maps to Meta-Description

og:type

  • Default value set to "website"

og:url

  • Based on meta property=og:url
  • Use the Canonical URL (link rel="canonical") when the OpenGraph URL does not exist

og:sitename

  • Based on the site the user is on (need to figure out how this works for non www microsites). The site names should be:
    • Cancer.gov: National Cancer Institute
    • DCEG: Division of Cancer Epidemiology & Genetics - National Cancer Institute

twitter:card

  • Set to a default value of "summary" to twitter:card