Add link to content option

Created on 26 February 2016, over 8 years ago
Updated 11 August 2023, 11 months ago

Problem/Motivation

Sometimes this module is used to make the design easier to implement, and sometimes it is used to make an image non draggable in the browser.
However in case it is used in a view as an image for an item, we might want that image to be clickable to lead us to the node page.
And defining JS just for that behaviour does not seem to be a nice way of doing it.

Proposed resolution

The formatter could offer a new option. "Link to content", which if checked would wrap the div with the background with an <a> </a> tag. Since HTML 5 this is allowed.

Is there any interest in such a feature?

For inline this solution would work fine as it simply outputs a div in a tpl file, so we can add an <a> in case of the new option is checked.

Likely we cant do anything with the css version as it only outputs the css then.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary nagy.balint

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024