Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

LinkIcons

Summary: Add icons to your links according to their extensions.
Version: 20121014
Maintainer: MatthiasGünther
Categories: Links, Layout
Download: see notes below
Discussion: LinkIcons-Talk
Demo: Linkicons
Users: +3 (View / Edit)

Picture of the recipe

Questions answered by this recipe

How can I easily display the type of links like PDF, HTML with a little icon according to the type and can use the icons for external links while internal links of my Wiki are displayed in normal style?

Description

This recipe simply add icons to your links. Just follow the instruction of the installation and be happy :).

Installation

NOTE: the installation instructions provided at bitbucket have spurious slashes that will cause LinkIcons to fail.

add to local/config.php in the following order:

  • $UrlLinkFmt= "<a class='external' href='\\$LinkUrl' rel='nofollow'\>\\$LinkText</a\>";
  • include_once("$FarmD/cookbook/linkicons.php");

should rather be

add to local/config.php in the following order:

  • $UrlLinkFmt= "<a class='external' href='\$LinkUrl' rel='nofollow'>\$LinkText</a>";
  • include_once("$FarmD/cookbook/linkicons.php");

README

Can be found under README.

Comments/Feedback

Please use the discussion page LinkIcons-Talk

User notes +3: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on February 13, 2014, at 02:25 PM