[TYPO3-core] RFC #13865: Feature: Possibility to configure alternative parameter for jumpurl filelinks

Sebastian Gebhard sebastiangebhard at hoch2.de
Fri Mar 19 11:56:29 CET 2010


This is an SVN patch request.

Type: Feature

Bugtracker references: http://bugs.typo3.org/view.php?id=13865

Branches: trunk

Problem:
When you produce a filelink with stdWrap.filelink and jumpurl.secure you 
will be linked to the current PageId and type again with appenden 
jumpurl GET-Params.
Most times it doesn't matter which pid or type is used by the link, 
because tslib_fe will redirect the request to the jumpurl anyway.
But there are usecases where the pid and type can be important.
Example: you want to log file downloads using config.stat, but don't 
want to log every page hit. So you can set con.stat_typeNumList to 1119, 
so that only hits with this typeNum are logged. But currently you can 
not use that custom type for your filelink.

Solution:
This patch introduces a property jumpurl.parameter to stdWrap.filelink

Notes:
It's straight forward applied to typolink.parameter so it has the same 
datatype/usage/syntax.
Also it has stdWrap properties of course.
When no parameter is set, the default behavior (current pid and typeNum) 
is applied.

Testcase:
lib.myfilelink = TEXT
lib.myfilelink{
   value = mydoc.pdf
   filelink{
     path = fileadmin/downloads/
     jumpurl = 1
     jumpurl.secure = 1
     jumpurl.parameter.dataWrap = {TSFE:id},1119
   }
}
jumpurlpage = PAGE
jumpurlpage.typeNum = 1119


Kind regards,
Sebastian Gebhard
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13865_v1.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100319/bea2d55c/attachment.txt>


More information about the TYPO3-team-core mailing list