[TYPO3-core] RFC #16027: Let typolink honour secure filelink configuration

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Nov 17 10:18:43 CET 2010


Hi Stan,

+1 by reading and testing.

Committed to trunk rev. 9428.

Added new property to pending documentation [1]


[1] http://wiki.typo3.org/Pending_Documentation#doc_core_tsref_.284.5.29

Cheers,
Ernesto

Stanislas Rolland schrieb am 12.11.2010 18:56:
> Re-generated the patch against current trunk because
> class.tslib_content.php has changed a lot.
> 
> Stanislas
> 
> 
> Le 2010-10-16 22:53, Stanislas Rolland a écrit :
>> Hi,
>>
>> This is a SVN patch request.
>>
>> Branches: trunk
>>
>> Type: feature
>>
>> BT reference: http://bugs.typo3.org/view.php?id=16027
>>
>> Problem:
>> filelink may be configured to be rendered as secure file download link.
>> Not so with typolinks in general when they are links to internal files.
>>
>> Solution:
>> The attached patch makes typolink honour the following configuration:
>> typolink.jumpurl =1
>> typolink.jumpurl.secure =1
>> typolink.jumpurl.secure.mimeTypes = list of mimetypes, syntax [ext] =
>> [mimetype]
>>
>> With such configuration, typolink will be rendered as secure download
>> link whenever the link is to an internal file.
>>
>> How to test:
>> For example, assuming CSS Styled Content is installed and assuming that
>> DAM is either not installed or not integrated with RTE, the following
>> settings in TS template will make any link to an internal file inserted
>> in the RTE be rendered as a secure file download:
>> lib.parseFunc_RTE.tags.link.typolink.jumpurl = 1
>> lib.parseFunc_RTE.tags.link.typolink.jumpurl {
>> secure = 1
>> secure.mimeTypes = pdf=application/pdf, doc=application/msword,
>> png=image/png, gif=image/gif, jpg=image/jpg
>> }
>>
>> Note:
>> This will require update to TSRef and follow-up patch to DAM to render
>> similarly the media tag.
>>
>> Kind regards,
>> Stanislas
> 



More information about the TYPO3-team-core mailing list