Feature #16859

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

Added by Oliver Hader over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Content Rendering
Target version:
-
Start date:
2007-01-16
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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 View (676 Bytes) Administrator Admin, 2007-01-16 11:13


Related issues

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

History

#1 Updated by Oliver Hader over 12 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".

#2 Updated by Oliver Hader over 12 years ago

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

#3 Updated by Oliver Hader over 12 years ago

Committed to Trunk.

#4 Updated by Oliver Hader 2 months ago

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

Also available in: Atom PDF