Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Currently, it is not possible to set the Schema type on other entity types than nodes (using the UI). This is a follow-up of #1296760: Support for setting type on Entity and fixes part of issue #2416531: Fields in field collections don't seem to work.
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff-4-6.txt | 971 bytes | BarisW |
#6 | use_schema_org_type_on-2416635-6.patch | 5.89 KB | BarisW |
Comments
Comment #1
BarisW CreditAttribution: BarisW commentedComment #2
BarisW CreditAttribution: BarisW commentedThe major change is that the form is now moved to the Field UI tab instead of the Node Type edit tab.
Comment #4
BarisW CreditAttribution: BarisW commentedNow with updated tests.
Comment #6
BarisW CreditAttribution: BarisW commentedSigh. Note to self: always test local first.
Eat this, testbot. Apologies for the noise.
Comment #7
BarwonHack CreditAttribution: BarwonHack commentedSeem to be woorking quite well thanks BarisW.
Hoping schemaorg and efb maintainers review and respond soon.
Comment #8
scor CreditAttribution: scor commentedHi @BarisW!
Thanks for your contribution! It's a good idea to piggy back on the field overview form instead of the edit form.
Could we get a somewhat more contextualized message here, since we know what entity type we looking at? I'm also realizing there has been a typo here for a while in the original code :)
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis patch introduces this error:
Notice: Undefined index: rdftype in schemaorg_ui_form_field_ui_field_overview_form_submit() (line 55 of schemaorg/modules/schemaorg_ui/schemaorg_ui.module).
I get it on entities like registration.
I did not specify a schema type, hit enter, and got the above error when saving an entity_registration.