Learn icon indicating copy to clipboard operation
Learn copied to clipboard

Convert lesson plan details into block widget

Open hlashbrooke opened this issue 4 years ago • 4 comments

The lesson plans have a static widget that shows lesson plan details.

Pull request #239 converts the sidebars into dynamic widget areas, but that widget is still hardcoded static content. This needs to be converted to a block widget. V1 would be fine to have the widget with no options so we can at least move it around, but v2 could have some options for what to show.

hlashbrooke avatar Nov 08 '21 23:11 hlashbrooke

@hlashbrooke is that this section?

Screen Shot 2021-12-14 at 4 40 04 PM

ryelle avatar Dec 14 '21 21:12 ryelle

Yeah that's it.

hlashbrooke avatar Dec 14 '21 21:12 hlashbrooke

This should support translations too.

adamwoodnz avatar Aug 01 '22 21:08 adamwoodnz

@hlashbrooke I'm starting to look into this and need some clarification please:

so we can at least move it around

Can you give an example of another place this would be used? This will help me ensure the block is fit for purpose.

~How are you thinking you would use this? Given this isn't a block theme maybe a shortcode could work? That way you can use it in the editor or within a template.~

adamwoodnz avatar Aug 22 '22 23:08 adamwoodnz

My thinking with saying we can move it around isn't to use it on other content types (since it's unique to Lesson Plans), but to allow us to move the widgets around as needed - this will allow us more flexibility with the sidebar layout as we add more content to it in the future. So no specific plans, but I was hoping for it to allow us flexibility as we move forward.

hlashbrooke avatar Sep 05 '22 23:09 hlashbrooke

So using the widget editor you'd be able to include the Lesson Plan details block wherever you see fit within this Lesson Plan sidebar?

Screen Shot 2022-09-06 at 11 26 28 AM

adamwoodnz avatar Sep 05 '22 23:09 adamwoodnz

Yes - exactly :)

hlashbrooke avatar Sep 05 '22 23:09 hlashbrooke

At the moment the details and actions (print button, etc) are grouped. Is it ok for them to stay like that, or would it be beneficial to be able to split them and move independently?

Screen Shot 2022-09-06 at 3 10 57 PM

adamwoodnz avatar Sep 06 '22 03:09 adamwoodnz

If we could split them into separate blocks that we can move around as widgets, that would be ideal.

hlashbrooke avatar Sep 07 '22 01:09 hlashbrooke