Feature #16859
closedtypolink.addQueryString: Enable usage of merged POST and GET data by new TypoScript configuration
0%
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)
Files