flammy / imagebox

This dokuwiki plugin displays captions in a box drawn around an image.
https://www.dokuwiki.org/plugin:imagebox
GNU General Public License v2.0
5 stars 7 forks source link

Make Image and Caption Linkable #123

Closed justrob1980 closed 1 year ago

justrob1980 commented 1 year ago

I am encountering an issue where I want to use Imagebox to include a caption for images. But I also want the image and the caption to be a clickable hyperlink to another page in the wiki. I have been experimenting with different permutations of combining the Imagebox syntax with the native Dokuwiki syntax for making images clickable links and it just doesn't work.

Maybe I am missing something and this should work?

If not, is there any way to get a feature added to this plugin for this to be added to the native syntax of the plugin?

flammy commented 1 year ago

There is currently no way to link a whole box.

Dokuwiki encapsulates the content in an a element. This works fine if you use an img but we have to use a block element in this plugin to add the description.

You could prevent the img from beeing linked and put the link in the description: [{{ wiki:dokuwiki-128.png?nolink| Use [[wiki:hilfe|link]] in description}}]