How about the option to exclude specific paths from processing. I'd like this functionality on most pages of the site, but not all - the homepage is one example... but I'm quite sure that members of the site's content team will find others and so the module needs the ability to exclude specific paths from having any icons or any other of extlinks injected into the page.

One example is the homepage, where the links look odd.
Another example is for a charity website... they like to open links to other sites in a new window - but not on pages in their donation flow for fear that they might loose donations because of it.

Comments

quicksketch’s picture

Category: feature » support
Status: Active » Closed (fixed)

You can already do this by adding regexes underneath the "Advanced" settings section at admin/settings/extlink.

silentway’s picture

Version: 6.x-1.x-dev » 6.x-1.11
Category: support » feature
Status: Closed (fixed) » Active

On admin/settings/extlink, under "PATTERN MATCHING" (the actual name of the above-described "Advanced"), there is an explanation of how to exclude particular links from being processed. RegEx can be used to "Exclude/include links matching the pattern"...

But the original poster is asking how to exclude certain drupal paths (and thus all the links found at that URL) from being processed at all by extlink.

For example, I'll describe a parallel scenario for a block. Say I want my front page to NOT show a particular block. The way that this is achieved is to go to admin/build/block, click on configure for the block in question, then go to the last item, "PAGE SPECIFIC VISIBILITY SETTINGS". There are these options:

Show block on specific pages:
[] Show on every page except the listed pages.
[] Show on only the listed pages.

A similar option for extlink (maybe "Path specific processing settings") would allow users to exclude or any other path from being processed by extlink.

If this functionality is possible with the current regex method in 6.11, it would be great to learn how. If not, consider this a feature request.

Thanks!

quicksketch’s picture

You're right, this request is different. I'll mark #793872: Avoid parsing admin screens duplicate, since it's asking for the same thing.

silentway’s picture

A tip for a sortof workaround until this feature request is implemented. Not quite the same, but might help in certain circumstances:

According to another External Links discussion, #747466: Selectors to exclude / include, a way to exclude a css class from displaying the external link icon:

If you would like to target certain parts of the site and hide the icon, you can do so in your own CSS file:

#some-section span.ext {
  background: none;
  padding: 0;
}

(On a related note, I also discovered that the module "Printer, e-mail and PDF versions" uses its own css file at modules/print/css/print.css that overrides the theme. With these two facts in hand, I have hidden the external link icon on all print versions... until the next print module update.)

elachlan’s picture

Status: Active » Closed (won't fix)

#1902220: Add CSS selector inclusion/exclusion has been implemented.

Ignore paths doesn't make much sense as this module runs the javascript on every page and does exclusions/inclusions based on Regex and now CSS selectors.

So you aren't gaining functionality and you aren't improving performance.