Summary: Talk page for the LinkIcons recipe
Maintainer: MatthiasGünther

Please add your comments about the LinkIcons recipe here. --MatthiasGünther Februray 21, 2008, at 03:47 PM

Hi Matthias, I've uploaded a file Attach:linkiconsplus.cssΔ, which does the following:

  • Changes the referenced class from external to urllink, thus removing the necessity to modify the $UrlLinkFmt variable
  • Makes the icons be applied also to attachment links (class attachlink), i.e. links to files you've uploaded
  • Removes some bits of CSS that don't do anything :)

Take a look and see if you would like to incorporate this!

Said Achmiz September 02, 2017, at 11:01 PM

Hey, thinking I'd really like to add a "new" icon to all internal page links that have been modified after a certain date. Doing a big site overhaul after 11 years of basically not doing anything with a site at I'd like a new! next to new content. XES May 06, 2017, at 12:22 PMXes

How to download a zipped version of this recipe?

simon October 11, 2012, at 03:02 AM

Hello simon, you can find the zip under

MatthiasGünther December 05, 2012 10:36 PM

Odd layout with markup

showing unexpected left indent
When a linked icon appears on a line with the markup -< the line is left indented too much.
showing unexpected left indent

This appears to affect all browsers. See tests.

simon September 24, 2009, at 04:46 PM @]

Hello simon, I noticed the bug you mentioned. It has somethin to do with the css-behavior of -< and the css of the recipe. I will look to implement a solution for this problem as soon as possible.

MatthiasGünther September 25, 2009 6:37 AM

An outdent is formatted with inline CSS, viz

<div class='outdent'>outdent</div>

the class is defined as follows

.outdent { margin-left:40px; text-indent:-40px; }

So the combination of outdent and padding-right:20px; must be the issue.

A tentative solution is

body .outdent a.external {text-indent: 0px;}

How do I display a separate icon for mailto links?

simon September 09, 2009, at 04:10 PM

Hello simon, do you mean something like this

MatthiasGünther September 10, 2009 10:00 AM

exactly, currently displays as Simon September 10, 2009, at 04:43 PM

thank you for the incredibly quick update simon September 11, 2009, at 06:25 AM

I found this article quite useful in understanding Matthias's work. I'm just trying to find out why it appears not to work with DeObMail, but it might be my browser (Chrome) instead. simon September 12, 2009, at 05:59 AM

You should add to pub/css/local.css such a block (should work in Chrome and IE):

/* mailto links */
a.mail {
  background:transparent url(../linkicons/email.png) center right no-repeat;

DeObMail sets a "mail" class to the generated mailto links. --Petko September 12, 2009, at 06:24 AM

A big thanks, simon September 12, 2009, at 05:45 PM

Can be done using css only

--VKrishn December 06, 2011, at 01:00 PM

Migrating all my sites to a farm, trying to consolidate as many recipes as possible — suggestion something like this probably should include a check for whether the linkicons folder exists in the farm pub directory otherwise check the field pub directory:

<?php if (!defined('PmWiki')) exit();

if (isset($FarmPubDirUrl)) {

$HTMLHeaderFmt[] = "<link rel='stylesheet' href='\$FarmPubDirUrl/css/linkicons.css' type='text/css' />";
} else {

$HTMLHeaderFmt[] = "<link rel='stylesheet' href='\$PubDirUrl/css/linkicons.css' type='text/css' />";

Also ?action=recipecheck comes up with an incorrect link for the linkicons recipe — not sure if that's recipecheck's issue or if the $RecipeInfo should have the recipename listed with the same camelcase as it is listed in the PmWiki cookbook.

XES August 09, 2020, at 10:31 AM

Indeed, the name in $RecipeInfo needs to be the same as the page name. --Petko August 09, 2020, at 05:01 PM

Talk page for the LinkIcons recipe (users).