Feature #12442
Provide format.json ViewHelper
Status: | Resolved | Start date: | 2011-01-21 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | ViewHelpers | |||
Target version: | TYPO3 Flow Base Distribution - 1.1 | |||
Has patch: | Yes |
Description
Hi,
i suggest to add type json to the escape viewhelper.
Sometime you want to render json output with fluid and not with an own json view. The problem is that fluid also uses json like syntax, so if you want to add an object to a json string you run into a problem.
Imagine adding a link with the link viewhelper. It returns a sting with double quotes which need to be escaped for json.
I simply added type json to the escape viewhelper which returns the $value json_encode()'ed.
Tell me what you think.
Regards,
Kevin
Associated revisions
[FEATURE] Adds a format.json ViewHelper
Provide a ViewHelper that enables putting JSON out of an array or
object. Basically wraps PHP's native json_encode() method.
Change-Id: I4bb364220e9c8a96c8ec748eed8247b7f990b72e
Resolves: #12442
Releases: 1.2
[TASK] Disable escapingInterceptor in Format.Json ViewHelper
Because the provided ViewHelper children will never be put
through to the template but only be used for source value
retrieval, the escapingInterceptor gets disabled.
Change-Id: I56df6e8d24ef9d6b831af732cfffded55fa97636
Related: #12442
Releases: 1.2
History
#1 Updated by Kevin Ulrich Moschallski over 4 years ago
- File 12442.patch added
#2 Updated by Kevin Ulrich Moschallski over 4 years ago
- File 12442_v2.patch added
Description added.
#3 Updated by Sebastian Kurfuerst about 4 years ago
- Category set to ViewHelpers
- Priority changed from Should have to Could have
- Has patch set to Yes
#4 Updated by Bastian Waidelich about 4 years ago
- Subject changed from Add type json to escape viewhelper to Provide format.json ViewHelper
Note: The escape ViewHelper will be deprecated in the next version (see #27628) so this functionality should be put in it's own format.json ViewHelper. I changed the subject of the issue accordingly
#5 Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8723
#6 Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8723
#7 Updated by Gerrit Code Review over 3 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8723
#8 Updated by Karsten Dambekalns over 3 years ago
- Target version set to 1.1
#9 Updated by Gerrit Code Review over 3 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9462
#10 Updated by Gerrit Code Review about 3 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11385
#11 Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9462
#12 Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9462
#13 Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9462
#14 Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9462
#15 Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9462
#16 Updated by Adrian Föder about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 87ea437e05eb0838afa45c24722785f7c0630240.