Feature #16859

typolink.addQueryString: Enable usage of merged POST and GET data by new TypoScript configuration

Added by Oliver Hader over 14 years ago. Updated about 14 years ago.

Should have
Content Rendering
Target version:
Start date:
Due date:
% Done:


Estimated time:
PHP Version:
Sprint Focus:


The TypoScript function "typolink" hast the property "additionalParams" which could have three values: "GET", "POST", (empty)

A website-project had the requirements, that every page must be printable by having a single page in the Frontend for that (print view). This output is reduced to only having text-content on it (no images, animations, whatever).
The requirement, that every page must have such a print-view-link includes, that POST AND GET data could be transfered to that page.

The request is to integrate the properties "GET,POST" and "POST,GET" to addQueryString. Using one of these props, a merged array of POST and GET data is created. The order in "GET,POST" indicates how array_merge is called - in that case array_merge({GET},{POST}) - so maybe party of GET are overwritten.

See the following simplified example (999 is the typeNum of the print-view-page):

print = PAGE
print {
typeNum = 999
10 = TEXT
10 {
value = Website ausdrucken
typolink {
parameter.data = page:uid
parameter.wrap = |,999
addQueryString = 1
addQueryString {
method = POST,GET
exclude = submit_x,submit_y
useCacheHash = 1

(issue imported from #M4790)


0004790.patch (676 Bytes) 0004790.patch Administrator Admin, 2007-01-16 11:13

Related issues

Related to TYPO3 Core - Task #88755: Remove POST option from typolink.addQueryStringClosed2019-07-15


Updated by Oliver Hader over 14 years ago

Note: On using simulateStaticDocuments it's not possible to simply use the implemented t3lib_div::getIndpEnv('QUERY_STRING'), because this value is empty if we have a URL like "Home.11+M56a264efc7d.0.html".


Updated by Oliver Hader over 14 years ago

See the attaced simpe patch file "0004790.patch" which adds the two new properties "GET,POST" and "POST,GET".


Updated by Oliver Hader over 14 years ago

Committed to Trunk.


Updated by Oliver Hader almost 2 years ago

  • Related to Task #88755: Remove POST option from typolink.addQueryString added

Also available in: Atom PDF