-
Notifications
You must be signed in to change notification settings - Fork 107
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
Locking Blocks to Prevent User Changes - Lesson #846
Comments
@wparasae after doing the research and prep for the block locking for beginners workshop, I discovered the following:
Given all this, I'm wondering if it makes sense to keep this in your low-code course, or move it to the Extend a Block Theme course? |
Yes, we should definitely move this. Thank you for diving so deeply into this! You're welcome to link to this in your course, and I will remove it from mine when I do my course overhaul. :) |
My pleasure!
Awesome, I've linked this issue up to my course overview issue, so feel free to assign it to me when you overhaul your course. |
Workshop on block locking https://wordpress.tv/2022/09/12/lets-code-a-beginners-guide-to-block-locking-in-block-themes/ |
@courtneyr-dev this lesson forms part of a course and is being used to track the development status of that course. So if we could please leave this open until this lesson in that course is ready to be created, thanks. |
I'll be working on this :) |
@justintadlock, just confirming you're taking over this lesson as well? |
Yes, I am handling this one too. Edit: I'm hoping to have a draft of this lesson up today here: https://github.com/justintadlock/block-theme-course/tree/main/module-09 |
Draft is up now: https://github.com/justintadlock/block-theme-course/blob/main/module-09/02-Locking-Blocks-to-Prevent-User-Changes.md Still needs copyediting. |
@justintadlock had a quick read-through, and everything looks great. I have one request for this lesson, would it be possible to add a short section about using the canLockBlocks setting to disable the feature globally or conditionally? Details here https://make.wordpress.org/core/2022/05/05/block-locking-settings-in-wordpress-6-0/ |
@jonathanbossenger - Just catching up with your last reply. It was my understanding based on the conversation above that we did not want to dive into filtering user permissions for this module. Maybe I'm mixing up which course this is supposed to go into. :) I did leave a note and link for further reading. I'm happy to add another section in, but I want to double-check to make sure. It's also worth noting that the Theme Review Team does not allow this in themes in the official directory. |
@justintadlock aha, apologies, that conversation was when this module was part of Develop Your First Low-Code Block Theme course. After my research into that section, we discovered that it would make more sense in this "developer" focused guide to block themes.
Hmm, that's interesting. I do understand why though because usually an admin would need to install the theme, and you don't want to be locking admins out accidentally. I'll do a bit more digging into this, I think it's worth showing how locking blocks in themes can be effective to prevent users making changes to the theme, but to the best of my knowledge, only admins can edit themes anyway, so it ends up not making much sense to lock the blocks in a theme in the first place, unless I'm missing something. Let's leave it for now, and I'll do a bit more research. We can always update the lesson as things change. |
No problem. Just let me know if things change and you want me to fill in those bits too. Happy to do so! |
Review: A very practical lesson with helpful code snippets and advice. This is the last lesson in the course. I suggest adding a conclusion and congratulating learners for completing the course etc. |
👍 done - https://learn.wordpress.org/lesson/congratulations-2/. Let me know if you think anything else could be added here. |
Looks great! |
IMPORTANT
This lesson plan belongs to part of a greater course, Extend a Low Code Block Theme which depends on the completion of Create a Custom Block Theme #1
Please reach out to @jonathanbossenger (Jonathan Bossenger) in the #training team Slack if you would like to help with this lesson plan.
Topic Description
This teaches people how to lock blocks in a block theme, and prevent other users from unlocking locked blocks
Objectives
After completing this lesson, participants will be able to:
Guidelines
Review the [team guidelines] (https://make.wordpress.org/training/handbook/guidelines/)
Development Checklist:
Repo Structure and Lesson Plan Template
Description
Target Audience
Who is this lesson intended for? What interests/skills would they bring? Put an "x" in the brackets for all that apply.
Experience Level
How much experience would a participant need to get the most from this lesson? Put an "x" in the brackets for all that apply.
Type of Instruction
Which strategies will be used for this lesson plan? Put an "x" in the brackets for all that apply.
Time Estimate (Duration)
How long will it take to present this lesson? Put an "x" in the brackets for the one that applies.
Prerequisite Skills
Participants will get the most from this lesson if they have familiarity with:
These are important to include in case someone wants to use this lesson plan in-person as a stand-alone lesson.
Readiness Questions
These are important to include in case someone wants to use this lesson plan in-person as a stand-alone lesson.
Slides
If someone wanted to run this lesson as a stand-alone Online Live Workshop or at an in-person WordCamp, you could create slides for this here; if you run a Live Online Workshop on one of these topics or find someone else has, related slides would be welcome!
Materials Needed
Notes for the Presenter
/Include any tips needed to present this topic for a Live Online Workshop or in an in-person classroom setting.
Lesson Outline
Exercises
What someone will DO with what they learn in each lesson; most lessons have at least one related exercise.
Exercise name
Short description of what the exercise does and what skills or knowledge it reinforces.
Assessment
These assessments will be autograded on Learn.WordPress.org.
There should be one assessment item (or more) for each objective listed above. Each assessment item should support an objective; there should be none that don't.
Write out the question.
Answer: 3. Correct answer
Additional Resources
Example Lesson [Written for a text-and-image based, multimedia course rather than for a live classroom setting]
Section Heading for Example Lesson
Lesson Wrap Up
Follow with the Exercises and Assessment outlined above.
The text was updated successfully, but these errors were encountered: