Feature #27498
Removing notion of "pageType" from Extbase
| Status: | Under Review | Start date: | 2011-06-16 | ||
|---|---|---|---|---|---|
| Priority: | Should have | Due date: | |||
| Assignee: | - | % Done: | 70% |
||
| Category: | Extbase: MVC | ||||
| Target version: | Extbase 6.2 | ||||
| Has patch: | Yes | Tags: | ETM, ETM4 | ||
| Votes: | 0 |
Description
In FLOW3 we use the @format argument/configuration to specify the format of a view (xml, txt, html, ...).
That has been backported to Extbase, so you can specify the format in various view helpers and when interacting with the UriBuilder.
But additionally we're using the pageType to render those special formats (E.g. if you want to render an xml representation of your plugin, you don't want all the rest of the page to be rendered obviously).
This leads to the situation, that you currently have to specify both, format and targetPageType when creating a link to a special format (see http://git.typo3.org/TYPO3v4/CoreProjects/MVC/blog_example.git?a=blob;f=Resources/Private/Templates/Post/Index.html;h=fa8a3ffe9160a4d8ee66516b1489e6375ebe5ea7;hb=HEAD#l50 for example).
A solution would be a global mapping, for example in the form of a new TS configuration "formatToPageTypeMapping" (name to be discussed):
config.tx_extbase {
view.formatToPageTypeMapping {
txt = 99
pdf = 123
}
}
The UriBuilder could then transparently set the pageType argument if it was not specified.
Related issues
| related to Extbase MVC Framework - Bug #7403: AbstractController->redirect does not allow to use a non-... | Rejected | 2010-04-21 | ||
| related to Extbase MVC Framework - Feature #9216: make response format configurable in TypoScript | Resolved | 2010-08-09 |
History
Updated by Mr. Hudson almost 2 years ago
Patch set 1 of change I22beb6334a094711abfb2ee7b53fb3e065ec8580 has been pushed to the review server.
It is available at http://review.typo3.org/2798
Updated by Sebastian Kurfuerst almost 2 years ago
- Status changed from New to Under Review
- Assignee set to Lienhart Woitok
- Target version set to Extbase 1.4
- % Done changed from 0 to 70
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/2798
Updated by Gerrit Code Review about 1 year ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/2798
Updated by Gerrit Code Review about 1 year ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/2798
Updated by Gerrit Code Review about 1 year ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/2798
Updated by Markus Günther 10 months ago
- Category changed from Extbase to Extbase: MVC
- Assignee deleted (
Lienhart Woitok) - Has patch changed from No to Yes
Updated by Gerrit Code Review 3 months ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/2798
Updated by Alexander Schnitzler about 1 month ago
- Target version changed from Extbase 1.4 to Extbase 6.2