Problem/Motivation

Only button and heading available as components at /admin/appearance/component - other SDCs don't appear. Any ideas?

Especially I need text.

The two expected ones are enabled by default, which is good.

Steps to reproduce

Enable the module
Go to /admin/appearance/component to see the available SDCs

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

anybody’s picture

anybody’s picture

Assigned: thomas.frobieter » Unassigned
Status: Active » Needs review

Guess we found it. It's strict about the required properties like examples:

anybody’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

anybody’s picture

Assigned: Unassigned » grevil
Status: Fixed » Active

Image is still not working. Comparing it to https://project.pages.drupalcode.org/canvas/sdc-components/ it looks totally correct.

Any ideas @grevil? Otherwise let's forward this to @thomas.frobieter.

anybody’s picture

HA NICE!! I just found this:
/admin/appearance/component/status
and it shows exactly the debugging information we need!

sdc.drowl_canvas.image 	
    Drupal Canvas does not know of a field type/widget to allow populating the image prop, with the shape {"type":"object","properties":{"src":{"type":"string","contentMediaType":"image/*","format":"uri-reference","x-allowed-schemes":["http","https"]},"alt":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["src"],"x-canvas-group":"content"}.

Also the other issues could have been found there - if I knew about this great functionality! ;)

sdc.drowl_canvas.text3 	

    Prop "text" is required, but does not have example value

sdc.drowl_canvas.text4 	

    Prop "text" is required, but does not have example value

🎉🎉

anybody’s picture

Okay I finally think I found the solution:
Remove x-canvas-group: content for $ref property.

See the change @thomas.frobieter. Might be relevant in the future, not easy to find...

anybody’s picture

Assigned: grevil » Unassigned
Status: Active » Fixed

Removing
x-canvas-group: content
for image because of $ref: already defining it was the key.

Maybe it's a side-effect of #3352063: Allow schema references in Single Directory Component prop schemas but who knows.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.