Image Block stupid question

Permalink 1 user found helpful
When adding an image block to a page, the editor allows you to add a Link... but the user needs to know the URL to link to (either an absolute URL or a relative URL to another page).

How difficult would it be to modify the Image block to allow the user to select another page in the site to use as the link for an image?

Or am I missing it and it's already included in the standard block?

Thanks!

arrestingdevelopment
 
rsmitty replied on at Permalink Reply
rsmitty
Hello,

Generally if I need to add an image with anything special I will use the basic content block. It gives you a lot more versatility that way. I hope this helps!

Rachel
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
Thanks, Rachel! The Content Block certainly does give you a lot more flexibility and control.
noXstyle replied on at Permalink Best Answer Reply 1 Attachment
noXstyle
Heya, sounded actually like a useful feature for once, thank you for that. So I extended the core image block to allow users select a page within the system.

Extended block attached. Hope it'll ease your work.
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
Wow... thanks! Just downloaded this and going off to check it out.

Really appreciate you doing this (the Concrete5 Community sure is amazing!!).
sourcedesign replied on at Permalink Reply
Hi there,

This was exactly what I was looking for - thanks for producing it - but I can't get it to work properly. I've got it installed ok and can select the page I want to link to from the dropdown menu. However, the link doesn't apply at all - nothing happens when you click on the button. I've cleared cache etc. after installing. I'm running 5.4.2.2.

Any help would be appreciated.
noXstyle replied on at Permalink Reply
noXstyle
Hi,

Have you refreshed the core image block on dashboard/packages?

Let me know if that doesn't work and I'll take a deeper look at it.
sourcedesign replied on at Permalink Reply
Working perfectly now, many thanks! :-)
rjCousineau replied on at Permalink Reply
Hi, I just installed this on 5.7.5.7 and I get:

"Call to undefined method Concrete\Core\Legacy\Loader::block()"

I installed it under /application/blocks
rjCousineau replied on at Permalink Reply
Hi, I just installed this on 5.7.5.7 and I get:

"Call to undefined method Concrete\Core\Legacy\Loader::block()"

I installed it under /application/blocks
rjCousineau replied on at Permalink Reply
Hi, I just installed this on 5.7.5.7 and I get:

"Call to undefined method Concrete\Core\Legacy\Loader::block()"

I installed it under /application/blocks
rjCousineau replied on at Permalink Reply
Hi, I just installed this on 5.7.5.7 and I get:

"Call to undefined method Concrete\Core\Legacy\Loader::block()"

I installed it under /application/blocks
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi rjCousineau,

The attached block in this discussion is for an older and incompatible version of concrete5.

The ability to link to another page within the Image block is available by default.
Image Link drop-down > Another Page > Choose Page
rjCousineau replied on at Permalink Reply
Awesome, thank you very much.