Hi,
I do not wish to override the in-built controller for blocks, but I am having trouble displaying an image in the background of the block.
I can get the umb://media/ data from block.data.background, but there seems to be no reference anywhere as to what resources are included by default.
So I need to know how to get the img url using the umb: path, from within the blocks controller.
like I said above, I do not want to mess-up the in-built controller for blocks by including extra controllers as I can get the simple data inbuilt and do not want to re-invent the wheel or end up with spaghetti-code that is painful to maintain and may break with an update.
I am having the same issue, and looking forward an indepth blog post about the subject.
On the release blog post they said will be a blog post about block editor in about 1 week after the release, so it must be near...
It basically means overriding the controller as I stated I did not wish to do.
however it is a kind of solution, please be aware this post is the very basics and does not go into much detail.
Display background-image in Block preview
Hi, I do not wish to override the in-built controller for blocks, but I am having trouble displaying an image in the background of the block.
I can get the
umb://media/
data from block.data.background, but there seems to be no reference anywhere as to what resources are included by default.So I need to know how to get the img url using the umb: path, from within the blocks controller.
like I said above, I do not want to mess-up the in-built controller for blocks by including extra controllers as I can get the simple data inbuilt and do not want to re-invent the wheel or end up with spaghetti-code that is painful to maintain and may break with an update.
Example:
pagelink is a content item picked by the content picker.
any response on this?
I am having the same issue, and looking forward an indepth blog post about the subject. On the release blog post they said will be a blog post about block editor in about 1 week after the release, so it must be near...
unfortunately they seem to say there will be something covering this all the time then never do. I guess we'll have to wait and see.
Ok there is a tutorial here: Deep Dive on BlockList
It basically means overriding the controller as I stated I did not wish to do. however it is a kind of solution, please be aware this post is the very basics and does not go into much detail.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.