[TYPO3-mvc] Urlencode within an argument declaration
Robert Schneider
r.schneider at artworx.at
Mon Sep 10 13:27:25 CEST 2012
Still no luck. I think for escaping a single back slash is sufficient,
though it is not better with this.
If I do it this way I get an URL that contains:
http://localhost/index.php?id=32&tx_forumproducts_forumproducts%5Bcategory%5D=%7B%27office%20%26%20business%27%20-%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20f%3Aformat.urlencode%28%29%7D&tx_forumproducts_forumproducts%5Baction%5D=listCategoryProducts&tx_forumproducts_forumproducts%5Bcontroller%5D=Product&cHash=b7891a37df4e2e6c6717a5ccac31e7e0
which is decoded:
http://localhost/index.php?id=32&tx_forumproducts_forumproducts[category]={'office
& business' ->
f:format.urlencode()}&tx_forumproducts_forumproducts[action]=listCategoryProducts&tx_forumproducts_forumproducts[controller]=Product&cHash=b7891a37df4e2e6c6717a5ccac31e7e0
The inline statement was not resolved. It is the same with single and
double apostrophes.
(BTW: I know now that I had an typo in my postings before: urnencode
instead of urlencode. But that wasn't the problem).
Am 10.09.2012 12:43, schrieb Claus Due:
> Hi Robert,
>
> Still not quite there yet:
>
>> <f:link.action
>> action="listCategoryProducts"
>> arguments="{category: '{\\'office & business\\' ->
>> f:format.urlencode()}'}">
>> Office $ Business
>> </f:link.action>
>
> Should work, but is untested.
>
> Cheers,
> Claus
>
More information about the TYPO3-project-typo3v4mvc
mailing list