Bug #70368
closed
EXT:form - themeName can not be overwritten by integrator
Added by Ralf Zimmermann almost 9 years ago.
Updated almost 7 years ago.
Description
The FORM element has a property called "themeName".
themeName is a variable part of the whole path to an element partial.
The partial paths to the element are build based on the following rule:
{$plugin.tx_form.view.partialRootPaths}/{$themeName}/@actionName/{$partialPath}.
The default themeName is "Default".
It is possible to define "themeName" in the specific FORM element but it is not possible to overwrite the "themeName" by the integrator with
plugin.tx_form.settings.registeredElements.FORM.themeName = bootstrapPackage
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43805
- Description updated (diff)
So testing this is not that difficult but one has to understand what to do/ configure. I'm providing an example. It sets for the specific form a new themeName. When testing one will get an exception because no theme exists with this name. But the process does work.
# this is working
themeName = Mytheme
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail = your@mail.com
senderEmail = your@mail.com
}
}
10 = TEXTLINE
10 {
name = surname
placeholder = Surname
required = 1
label {
value = Surname
}
}
20 = SUBMIT
20 {
name = 3
value = Submit form
}
Setting the themeName globally does not work, i.e. you won't even get the exception since it's not evaluated.
plugin.tx_form {
settings {
# this is not working
registeredElements.FORM.themeName = Mytheme
}
}
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43805
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43805
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43896
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43896
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF