tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
194 stars 19 forks source link

Add image URL for image block #1088

Open danstramer opened 1 year ago

danstramer commented 1 year ago

Description

It would be a great option to see the image URL in the Block settings section of the GB image block

Steps for testing

  1. Add an image via the GB image block
  2. Along the width/height, alt and title attributes, adding a URL field to show the image's url
  3. This window can be a static one, just showing the url with no option for editing.

This is useful as currently the oonly way to identify the image's URL is either by replacing it or by inspecting the front end code.

References:

...


JeanPaiva commented 1 year ago

Hey @danstramer you can already check the image URL on the toolbar "Replace" option.

Screenshot 2023-07-25 at 13 44 35
danstramer commented 1 year ago

Hi, I'm not seeing it:

image

in any way, I think a better location for this field would be within the image block settings

JeanPaiva commented 1 year ago

What is your GenerateBlocks version?

danstramer commented 1 year ago

1.8.0

danstramer commented 1 year ago

also on 1.8.1 (just updated to check if it made any change)

JeanPaiva commented 1 year ago

We only show that field if you inserted the image from a URL. If you used it from the media library we don't show it, because we use the attachment ID to display the message, so there's no URL set.

danstramer commented 1 year ago

ok, thanks for the clarifiation. Still, I think there should be a UI to let the user know what is the URL/location of the image even if it's from the media library. something like this: image