Block Grid Components are not clickable umb15
# help-with-umbraco
n
Hi everyone. We have bunch of custom views as block grids and we are struggling with clients now. For example, let's say Image Box. In version 13, we used block.edit() and when they clicked anywhere on that image in backoffice it would open edit content modal. Right now that doesn't work for custom components and I was wondering is there some way to make it clickable again. Is there specific way to enable it when creating elements? It would also be really useful if we could modify position of action bar
r
Check out how I’m doing it in BlockPreview, I’m having to get ‘workspaceEditContentPath’ from the BlockGridEntryContext to make it clickable https://github.com/rickbutterfield/Umbraco.Community.BlockPreview/blob/v3/dev/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts
n
You really are a mvp ❤️ Thanks a lot, it helped me to figure out rest on my own. I just needed key word here which was context and where to look for.
2 Views