Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes: what do the source and selector properties do? #147

Closed
bph opened this issue Jul 6, 2023 Discussed in #138 · 5 comments
Closed

Attributes: what do the source and selector properties do? #147

bph opened this issue Jul 6, 2023 Discussed in #138 · 5 comments
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Jul 6, 2023

Discussed in #138

Originally posted by mburridge June 29, 2023
Block attributes are typically stored in the comment delimiter, and the values are fetched from there when the block is parsed to be displayed in the editor. But did you know that attribute values can also be stored in the block content? You can use the source and selector properties to determine where in the saved block the attribute values are fetched from at parse time.

This post will be an introduction to using and saving attributes - basically a friendlier and more tutorial-based version of the content in the Attributes page in the handbook, and with more examples.

@mburridge
Copy link

A draft of this post is now ready for review.

@mburridge mburridge added the flow: needs review reviewer wanted label Sep 1, 2023
@mburridge
Copy link

A public preview of the attributes post is now available for review:
https://developer.wordpress.org/news/?p=1981&preview=1&_ppp=ec5d6c5e35

@mburridge
Copy link

mburridge commented Sep 14, 2023

Pre and post publishing checklist:

  • Post Title in Sentence case
  • Are Category or Categories selected?
  • Are Tags identifies?
  • Is there an explicit Excerpt?
  • Props added?
  • 🙌 Publish! 📗
  • add Props for reviews to #props channel in WP Slack
  • close the issue with a comment to link to the published post
  • close the accompanying discussion with w link to the publish post.

@bph
Copy link
Collaborator Author

bph commented Sep 14, 2023

Hi @mburridge
I really like that you want through the topic one step at a time. This is an excellent post for beginners.

  • added one more subheader at the beginning
  • added a Table of contents.
  • added alt-text to all images (was missing from your copy of the pre-publish checklist)
  • uploaded all images from Google doc
  • selected the social image.

I went ahead and published it. 🚢

Hope, you are ok with the small changes.

Please review your post-publish check from this issue

@mburridge
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Published (Done)
Development

No branches or pull requests

2 participants