PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #9271

Create a media descriptor

Details

Request #9271Create a media descriptor
Submitted2006-11-08 14:28 UTC
Frommariogzuk at technikz dot de
StatusOpen
PackageText_Wiki
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2006-11-08 14:28 UTC] mariogzuk at technikz dot de

Description:
------------
Hi,
It would be nice to have a [media] tag like in wikipedia to define a link to any file. It would also be nice to have an automatical mimetype detection in it to place a mimetype image after the link.

Thank you.

Test script:
---------------
[media data/test.pdf Describe me]
[media data/nothing.bin Binary]

Expected result:
----------------
<a href="data/test.pdf">Describe me <img src="path/to/mimetypes/pdf.gif"></a>
<a href="data/nothing.bin">Binary <img src="path/to/mimetypes/bin.gif"></a>

Actual result:
--------------
none

[2006-11-08 14:30 UTC] mariogzuk at technikz dot de

Sorry I mean mediawiki (mediawiki.org) not wikipedia.....