SpecialAnnouncement
This term is proposed for full integration into Schema.org

https://schema.org/SpecialAnnouncement

A SpecialAnnouncement combines a simple date-stamped textual information update with contextualized Web links and other structured data. It represents an information update made by a locally-oriented organization, for example schools, pharmacies, healthcare providers, community groups, police, local government.

Example:

    <script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "SpecialAnnouncement",
        "name": "School Closure information for Eastergate School",
        "text": "School closure information has been published.",
        "datePosted": "2020-03-17",
        "expires": "2020-03-24",
        "category": "https://www.wikidata.org/wiki/Q81068910",
        "schoolClosuresInfo": "http://example.org/schools/school/eastergate-cofe-primary-school/closures",
        "webFeed": {
          "@type": "DateFeed",
          "@url": "http://example.org/schools/school/eastergate-cofe-primary-school/closures",
          "encodingFormat": "application/rss+atom"
        },
        "about" : {
            "@type": "School",
            "name": "Eastergate School",
            "url": "http://example.org/schools/school/eastergate-cofe-primary-school/",
            "location": "..."
        }
    }
    </script>

Noticed in the Schema for Coronavirus special announcements, Covid-19 Testing Facilities and more

Tim Berners-Lee @timberners_lee

If you are putting special announcements on your web site, here is also how to make them up so search engines know what they are.
https://twitter.com/timberners_lee/status/1240021668518604810?s=20

Comments

RajabNatshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
nickdickinsonwilde’s picture

Assigned: Unassigned » nickdickinsonwilde

In progress 😉

nickdickinsonwilde’s picture

Status: Active » Needs review
StatusFileSize
new28.02 KB

Ready for review.

nickdickinsonwilde’s picture

Error appears unrelated to this patch - syntax error in file untouched by patch.

nickdickinsonwilde’s picture

Assigned: nickdickinsonwilde » Unassigned
phernand42’s picture

Thanks so much for creating this patch! Seems to be working for the most part. However it may be missing the announcementLocation property. When I run my page through googles structured data testing tool I received the following warning.

One of announcementLocation or spatialCoverage must be provided.

damienmckenna’s picture

Status: Needs review » Needs work

Yeah, that'd be useful, though the specifications don't say it's required.

Putting it back to "needs work" for this to be added.

jrglasgow’s picture

Status: Needs work » Needs review
StatusFileSize
new31.19 KB
new2.73 KB

here is my attempt at adding spatialCoverage and announcementLocation to the specialAnnouncement

rajab natshah’s picture

phernand42’s picture

Thanks for adding. Tested out patch in #9 and it worked out ok. The order of the fields seems to have to been changed a bit. The text, category, and date fields is now below new announcementLocation and spatialCoverage properties.

jrglasgow’s picture

StatusFileSize
new31.2 KB
new1.38 KB

I updated the patch from #9 so the SpatialCoverage and AnnouncementLocation have the same weight (11) as most of the rest of the items so they fall below the text (1) and category (2)

snaik’s picture

Hello,

Are there plans to port this feature into the D7 version of the module?

Thanks!

jrglasgow’s picture

I know of a couple of folks who have been working on a port of this patch for D7 and have asked them to upload it here.

snaik’s picture

Thank You!

snaik’s picture

Hello,

Could you please let me know if there has been any update on the D7 version? I am happy to help with any testing if required.

Thanks!

snaik’s picture

StatusFileSize
new2.44 KB

I have created a module for the Drupal 7 version. It has the basic SpecialAnnouncement tags available. You can add more tags to the "schema_special_announcement.metatag.inc" file if required.

craigcollinsyoung’s picture

Curious if there has been any update on the work for the Special Announcement schema patch for Drupal 8. At this point, is it just testing that needs to be done to flip this over to "complete"? I'm not much of a developer, but would be happy to help in any way possible!

Thanks.

karens’s picture

I am working with this and wondering why we have the complicated SchemaUrlWebContentBase, SchemaWebContentBase, and SchemaUrlWebContentTrait. That adds a ton of complication to something that in the Google examples is just a url. I would have done this just using SchemaNameBase. That is also consistent with the way all the other elements work. I don't see any discussion in this thread about that decision so I can't tell if there is a reason for that. The only reason I can see is that https://SpecialAnnouncement has elements that could be provided using multiple objects, which is true for many other elements throughout Schema.org. In those cases, we have just made the decision to pick one that will provide the output in Google's examples and use it.

I am going to try to simplify this down to something more like what we've done elsewhere and post a patch. I'll also pull in the spacialCoverage (which looks like SchemaPlaceBase).

karens’s picture

I'm guessing the web content configuration is just a misunderstanding of how the rest of the code works. I also see a number of other suggested fields. I'll try to add them in too.

karens’s picture

StatusFileSize
new35.86 KB
karens’s picture

StatusFileSize
new35.86 KB
karens’s picture

StatusFileSize
new35.86 KB
karens’s picture

StatusFileSize
new40.15 KB

Status: Needs review » Needs work

The last submitted patch, 24: 3120412-24-special-announcements.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new40.15 KB

  • KarenS committed 0366843 on 8.x-1.x
    Issue #3120412 by KarenS, jrglasgow, NickDickinsonWilde, snaik,...
karens’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Active

Committed D8, now switching to D7.

karens’s picture

Status: Active » Needs review
StatusFileSize
new20.6 KB
karens’s picture

StatusFileSize
new20.84 KB

Status: Needs review » Needs work

The last submitted patch, 30: 3120412-30-special-announcements.patch, failed testing. View results

karens’s picture

Status: Needs work » Needs review
StatusFileSize
new20.86 KB

  • KarenS committed f9856ba on 7.x-1.x
    Issue #3120412 by KarenS, jrglasgow, NickDickinsonWilde, snaik,...
karens’s picture

Status: Needs review » Fixed

Both D8 and D7 committed now. Thanks for the help!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

DanielRemnant’s picture

Hi! I use some of schema markups on my website. Do i need to add CreativeWork in the SpecialAnnouncement type?