Feature #6903
Missing possibility to add Classes/valid targets to Areas
| Status: | Closed | Start date: | 2010-03-18 | |
|---|---|---|---|---|
| Priority: | Won't have this time | Due date: | ||
| Assignee: | Michael Perlbach | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | MW Imagemap 1.2.2 | |||
| Votes: | 0 |
Description
With Version 1.2.2 its not possible to add classes to the areas. If you enter a class via the Linkwizard the extension generates something link target="- yourClass"
The attached patch offers this possibility. Would be nice to see this is future versions :)
History
Updated by Michael Perlbach about 3 years ago
- Status changed from New to Accepted
- Assignee set to Michael Perlbach
- Priority changed from Must have to Could have
Hi Henrik,
Thanks for your patch. I will take a look at it and if it works it will probably
become part of the maintenance release which I intend to publish no sooner than
the start of June.
Nevertheless I'm quite sure you overlooked something: For any given area you
have the option to use "Additional Parameters for the linked area". It's clearly
described in the manual. If you put your class definition there it should be
assigned to the chosen area. Also works for additional mouseover-effects etc..
Wasn't this the feature you were missing?
Cheers
Michael
Updated by Henrik Ziegenhain about 3 years ago
Hi Michael,
damn. You`re right. I overlooked this one. This is the feature I missed.
It works quite nice. If I add »id - classname« as link (with the attached patch) and »class="secondClass"« as additional Parameter it outputs only class="classname" and not something invalide like class="classname" class="secondClass".
Updated by Michael Perlbach about 3 years ago
- Status changed from Accepted to Closed
- Priority changed from Could have to Won't have this time
Hi Henrik,
So "Additional Parameters for the linked area" was the feature you were missing and
it seems to work for you, so I close this ticket for now. I keep your patch in mind and
I hope I find some time to test it.
Cheers
Michael
Updated by Quadronet no-lastname-given almost 3 years ago
Nice patch, thank you very much. I is possible to hidden empty target and classes? I need only for extern URL´s the target - tag?
Yes it is, there is an error in the code:
use like this:
if (trim($linkparams1) != '')
if (trim($linkparams2) != '')
as:
if (trim($linkparams1) != ' ')
if (trim($linkparams2) != ' ')