Topic on Project:Support desk

[RESOLVED] Using a pdf logo to link to an uploaded file

6
31.185.135.233 (talkcontribs)

I have a number of uploaded pdf files. I can link to them using the syntax LABEL NAME (pdf). However I would like to replace the text (pdf) with the adobe logo. I can only find examples of how to do this for external links. How can I do this for an uploaded file within my mediawiki site? I want ensure that clicking on the logo only links to the pdf file, not the logo image file. I am running mediawiki 1.23.2.

31.185.135.233 (talkcontribs)

Sorry message should read :
I have a number of uploaded pdf files. I can link to them using the syntax [[media:FILENAME.pdf|LABEL NAME (pdf)]]. However I would like to replace the text (pdf) with the adobe logo. I can only find examples of how to do this for external links. How can I do this for an uploaded file within my mediawiki site? I want ensure that clicking on the logo only links to the pdf file, not the logo image file.
I am running mediawiki 1.23.2.

Jackmcbarn (talkcontribs)
31.185.135.233 (talkcontribs)

Thank you. Presumably there is a similar format for word or excel documents.

Jackmcbarn (talkcontribs)

Indeed. Just add another copy of the code, changing all .pdf's to .doc's (or whatever extension you want), and change the background URL to the icon you want.

Reply to "[RESOLVED] Using a pdf logo to link to an uploaded file"