collective / volto-hydra

A volto addon to let you edit content in realtime when you have many frontends written in any framework
0 stars 2 forks source link

I can Click on block in blocks nav tree and edit it in sidebar , save and see it changed in preview #14

Closed MAX-786 closed 1 month ago

djay commented 2 months ago

as discussed. take victors navtree code and include it in this addon to just get a very basic list of blocks. Later we can take this out and use the proper navtree that will be included in 18.

djay commented 2 months ago

@MAX-786 this is his latest version. We probably can't wait to have this merged but we can just copy some of the code and make a simpler version for now that list lists out the blocks

https://github.com/plone/volto/pull/5642

djay commented 2 months ago

@JeffersonBledsoe it seems like the blocks nav branch is almost finished. Would there be any problem using it as is and therefore using the latest 18 and 6.1 backend?

djay commented 2 months ago

Descision was to wait until the navtree is released into a 18 alpha and instead do the click on preview to select earlier #24

djay commented 2 months ago

Not something that needs to be solved here but seems that blocks navtree doesn't really have a good logical place in the quanta design.

Tabs are gone and instead you get a settings button

Image

and if you close the sidebar then you would have to use the quanta toolbar to open it again

Image

One obvious option is another icon in the toolbar. But its going to take up space for something not that often used.

Instead I think it should be both in the Page settings and in the block settings

djay commented 1 month ago

@MAX-786 the order tab is now deployed but I can't see to click on a block and edit it. I'm not sure if thats something you've broken or thats just not meant to be how it works?

MAX-786 commented 1 month ago

@MAX-786 the order tab is now deployed but I can't see to click on a block and edit it. I'm not sure if thats something you've broken or thats just not meant to be how it works?

In volto, clicking on blocks in Order tab will select the block on screen, so I am aiming for that for the iframe. I'll create a seperate PR for that.