Doesn't work with a display:block links / in menu items
BarisW - October 23, 2009 - 09:09
| Project: | External Links |
| Version: | 6.x-1.8 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
The js code checks if an has a line display. If so, it wraps a span around it with the class ext. If not, the ext class is added to the tag itself. However, extlink.css only contains a icon background for span.ext and span.mailto, not for a.ext and a.mailto.
I have some links in my site with display:block (some CCK Links in my sidebar for example). On these links, the icon does not appear.

#1
Apologies, forgot to add
<code>blocks...The js code checks if an
<a>has adisplay:inlinedisplay. If so, it wraps a span around it with the class ext. If not, the ext class is added to the<a>tag itself. However, extlink.css only contains a background-image for span.ext and span.mailto, not for a.ext and a.mailtoI have some links on my site with display:block (some CCK Links in my sidebar for example). On these links, the icon does not appear.
#2
This is intentional, since often times links are display: block because they have a background image or are part of the primary navigation or tabs.
#3
Don't know wether same problem:
in menu items: ext link is recognized (opens in new window) but icon is not attached.
#4
Yes this is probably because your theme uses
display: blockfor displaying menu items in your navigation.As I noted above, this is by design.
#5
Thanks.
I just started with drupal and for my intentions your module is a must.
Using standard Garland, because my priority is functionality in the moment.
I've reset status to 'by design', but it would be great to get an answer, wether there will be a chance to get a solution for that or not.