Project

General

Profile

Actions

Bug #70368

closed

EXT:form - themeName can not be overwritten by integrator

Added by Ralf Zimmermann over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2015-10-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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
Actions #1

Updated by Gerrit Code Review over 8 years ago

  • 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

Actions #2

Updated by Björn Jacob over 8 years ago

  • Description updated (diff)
Actions #3

Updated by Björn Jacob over 8 years ago

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
    }
}

Actions #4

Updated by Gerrit Code Review over 8 years ago

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

Actions #5

Updated by Gerrit Code Review over 8 years ago

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

Actions #6

Updated by Ralf Zimmermann over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Gerrit Code Review over 8 years ago

  • 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

Actions #8

Updated by Gerrit Code Review over 8 years ago

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

Actions #9

Updated by Daniel Goerz over 8 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF