Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Links not working on image map
Avatar
mark earle #1
User title: mark earle
Member since Dec 2019 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Links not working on image map
I have created links for each department on an organisational structure diagram. Behind each department link I have added relevant information for that particular department. Every now and again the links are no longer there and I have not edited any information within the page. I have saved the co-ordinates for the links created and can take them from by notepad and copy them directly in to the DW EDIT page function. The links are then restored.
My question is does anybody know why the links disappear? I am trying to understand the system and answering this question will help my understanding.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4820 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
See https://www.dokuwiki.org/plugin:ckgedit#html_blocks
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4820 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
This will also work, entered directly into the ckeditor:
~~START_HTML_BLOCK~~
<code>
<img class="media imap" src="https://mturner.org/userfiles/planets.gif" usemap="#planetmap" /><br />
<map name="planetmap"><area alt="Sun" coords="0,0,82,126" href="https://mturner.org" shape="rect" /><br />
<area alt="Mercury" coords="90,58,3" href="https://dokuwiki.org" shape="circle" /><br />
<area alt="Venus" coords="124,58,8" href="https://www.wikipedia.org/" shape="circle" /></map>
</code>

~~CLOSE_HTML_BLOCK~~

But read the plugin page referenced above for htmlok and htmlblock settings.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2019-12-13, 19:57 by turnermm.
Avatar
mark earle #4
User title: mark earle
Member since Dec 2019 · 4 posts
Group memberships: Members
Show profile · Link to this post
Thanks turnermm
Avatar
StarArmy #5
Member since Nov 2011 · 125 posts
Group memberships: Members
Show profile · Link to this post
This is only semi-related, but from an accessibility standpoint you will probably want to give low-vision users a way to reach the links that doesn't involve the image map.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-08, 18:43:44 (UTC +02:00)