[pmwiki-users] title-attribute in PmWiki-syntax
Patrick R. Michaud
pmichaud at pobox.com
Thu Jul 21 14:35:23 CDT 2005
On Thu, Jul 21, 2005 at 09:08:43PM +0200, Clemens Gruber wrote:
> We are verry happy with PmWiki and using it in several installations for
> distributing course-stuff or collecting material for thesis and we even
> use it for "normal" websites.
Great!
> Now I like to use the title-attribute in the image tag. But I have no
> idea how to manage this:
> <img src="icon-pdf.gif" title="PDF-File" />
>
> Is there a opportunitiy to use CustomWikiStyles for this?
> http://pmwiki.org/wiki/PmWiki/CustomWikiStyles
If you're willing to give up the alt= attribute, then you can
simply set $ImgTagFmt as follows:
$ImgTagFmt = "<img src='\$LinkUrl' alt='' title='\$LinkAlt' />";
Then you can specify the title= attribute in the markup directly:
Attach:icon-pdf.gif"PDF-File"
Or, if you're willing to have the title and alt attributes be identical,
you can do:
$ImgTagFmt = "<img src='\$LinkUrl' alt='\$LinkAlt' title='\$LinkAlt' />";
I'm not sure if this is really what you're looking for, but it's
a start.
Pm
More information about the pmwiki-users
mailing list