Project

General

Profile

Actions

Feature #16859

closed

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

Added by Oliver Hader almost 18 years ago. Updated over 17 years ago.

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

0%

Estimated time:
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)


Files

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

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Oliver Hader almost 18 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".

Actions #2

Updated by Oliver Hader almost 18 years ago

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

Actions #3

Updated by Oliver Hader almost 18 years ago

Committed to Trunk.

Actions #4

Updated by Oliver Hader over 5 years ago

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

Also available in: Atom PDF