Added in 2.2.119, enable it with:

  $AddLinkCSS['samedomain'] = 'mycustomclassname';

then in the CSS you can style:

  a.urllink:not(.mycustomclassname) { ... }

Petko

On 18/09/2019 21:18, Dominique Faure wrote:
This could be nice if we could have these auto-generated from the PmWiki
Core itself, taking account of the $ScriptUrl definition, no?

On Wed, Sep 18, 2019 at 9:01 PM Petko Yotov <5...@5ko.fr> wrote:

I think I've fixed the recipe, if you test it please report if it works.

As of 2019, for my websites, instead of this recipe, I'd certainly *not*
enable the %newwin%/target="_blank" link feature (people know how to
middle-click or long-tap to open a new window), and if I needed the
external link styling I'd place into pub/css/local.css these styles:

   a.urllink:not([href*="://www.example.com"]) {
     color: #2f6fab;
   }

   a.urllink:not([href*="://www.example.com"]):after {
     content: '\2197'; /* NE arrow */
   }

"a.urllink" is the default CSS class for external links, unless a recipe
or a skin modified it. www.example.com is your domain name.

Petko

On 17/09/2019 17:02, Donald Z. Osborn wrote:
> Noted the /e parameter - perhaps the very same one that causes issues
> with
> PHP7.2 - in:
> https://www.pmwiki.org/wiki/Cookbook/ExternalLinks2
>
> Should/can this be fixed, or is there a recommended alternative?

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to