[TYPO3] File link (simple question?)
Tony P
typo3 at tweezyhosting.com.au
Thu Jun 19 15:49:58 CEST 2008
There have been no replies to this question. I'm sure it must be
possible, but I still can't nut it out. Any takers please?
Tony
-------- Original Message --------
Subject: [TYPO3] File link (simple question?)
Date: Mon, 16 Jun 2008 15:43:58 +1000
To: typo3-english at lists.netfielders.de
I'm trying to re-purpose a field in the si_bibtex extension to make it
appear as a link to an uploaded file.
I've got it working in the back end by adding this to extTables.php:
$GLOBALS['TCA']["tx_sibibtex_entries"]['columns']['institution']['config']['type']
= 'input';
$GLOBALS['TCA']["tx_sibibtex_entries"]['columns']['institution']['config']['wizards']
= array(
'link' => Array(
'type' => 'popup',
'title' => 'Link',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard',
'JSopenParams' =>
'height=300,width=500,status=0,menubar=0,scrollbars=1'
)
);
However on the page in the front end, it just appears as plain text, eg
fileadmin/user_upload/whitepaper.pdf
How do i get it to render as a link to the file, and with the link text
being just the filename, eg
[a href="fileadmin/user_upload/whitepaper.pdf"]whitepaper.pdf[/a]
I hope someone can help me.
More information about the TYPO3-english
mailing list