[TYPO3] File link (simple question?)

Michael Niemann xml.transformator at yahoo.com
Fri Jun 20 10:24:38 CEST 2008


Hello,
I don't know this extension but usually if I add a field I'll also have to add some code to the frontend plugin to generate some output for that field.

How does the si_bibtex plugin look? Does it iterate through all fields and does it use a template?

If you ask a question specific to a single extension only people who know this extension might be able to answer. Otherwise you'd need to give some insight on how the extension works.

Regards Michael
--- On Thu, 6/19/08, Tony P <typo3 at tweezyhosting.com.au> wrote:
From: Tony P <typo3 at tweezyhosting.com.au>
Subject: Re: [TYPO3] File link (simple question?)
To: "TYPO3 English" <typo3-english at lists.netfielders.de>
Date: Thursday, June 19, 2008, 1:49 PM

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.

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


      


More information about the TYPO3-english mailing list