[pmwiki-users] External links to the same host

Patrick R. Michaud pmichaud at pobox.com
Sun Feb 18 23:29:28 CST 2007


On Mon, Feb 19, 2007 at 04:15:36AM +0100, Petko Yotov wrote:
> On Monday 19 February 2007 03:17, Kathryn Andersen wrote:
> > Is there a way to turn off the "external" markup for these kinds of
> > links?
> 
> There is another sub-class: links to attached files inside the wiki 
> (currently all tagged as external). 
> 
> I also believe such a feature would be usefull, however not to turn off 
> the "external" CSS class, but to add another CSS class.

One can already set the html/css for attachment links -- see
http://www.pmwiki.org/wiki/Cookbook/UpdateAttachments .  
Essentially, just do

    $IMapLinkFmt['Attach:'] = 
      "<a class='urllink attachlink' href='\$LinkUrl'>\$LinkText</a>";

and all Attach: links will end up with an 'attachlink' class
attribute.

Pm



More information about the pmwiki-users mailing list