-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TASK] Remove v:switch and v:case #1003
Conversation
That woul mean vhs 3.0 - is there anything we can release upfront? |
That is exactly what that would mean :) We can make a bugfix release for 2.4.1 if necessary. |
We could also make class aliases. I'll do that! |
Alright - great idea! |
Are they 100% compatible argument-wise? |
Hmm, now that you mention it... they're not. We do have to remove these without aliases, and the migration description needs to include argument differences. |
Agreed. :) |
This removes the two now redundant ViewHelpers - every supported TYPO3 version now contains proper Switch/Case ViewHelpers. To migrate: * Identify all templates containing `v:switch` * Replace `v:switch` with `f:switch` * Use `expression` argument on `f:switch` (the `value` argument does not exist there) * Remove `as` argument (undocumented, no substitution) * Replace `v:case` with `f:case` * Special: if `v:case` with `case="default"` exists - replace with `default="1"` on `f:case` (or `f:defaultCase` without arguments if your minimum core version is TYPO3v8 and up) * Use `value` argument on `f:case` (the `case` argument does not exist there)
Someone shold mark the v:switch as DEPRECATED in the viewhelper reference at: |
This removes the two now redundant ViewHelpers - every supported TYPO3 version now contains proper Switch/Case ViewHelpers.
To migrate:
v:switch
v:switch
withf:switch
expression
argument onf:switch
(thevalue
argument does not exist there)as
argument (undocumented, no substitution)v:case
withf:case
v:case
withcase="default"
exists - replace withdefault="1"
onf:case
(orf:defaultCase
without arguments if your minimum core version is TYPO3v8 and up)value
argument onf:case
(thecase
argument does not exist there)