Project

General

Profile

Actions

Bug #78478

closed

Element partial root path is ignored

Added by Thomas Pötzsch about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2016-10-28
Due date:
% Done:

100%

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

Description

I am using sysext:form to create forms. Inside the setup.txt of my own extension, i specified a partial root path:
plugin.tx_form.view.partialRootPaths.10 = EXT:myExtension/Resources/Private/Partials/. If I use the TypoScript Object Browser inside the Templating tools, I can see the path beeing loaded. However, since I upgraded from TYPO3 8.3.1 to 8.4, the specified partial path is no longer used by TYPO3 to build the form elements.

Actions #1

Updated by Thomas Pötzsch about 8 years ago

  • Assignee set to Björn Jacob

I fixed the problem. Since TYPO3 8.4, the standard element partial path has a sorting of [10], and you need to extend it by using [20] (e.g. plugin.tx_form.view.partialRootPaths.20 = EXT:myExtension/Resources/Private/Partials/). If you only overwrite the [10], it wont work.

Please close this ticket,
Thanks in advance

Actions #2

Updated by Björn Jacob about 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Awesome. Thank you for your feedback.

Actions #3

Updated by Oliver Schlöbe over 7 years ago

Hi there,

sorry for reviving this ticket but it seems that TYPO3 8.6 is again ignoring the partial root path using the following notation:

plugin.tx_form {
  view {
    partialRootPaths.20 = fileadmin/template/form/Frontend/Partials/
  }
}

Steps to reproduce:
1.) Copy file Field.html from EXT:form/Resources/Private/Frontend/Partials/Field/Field.html to your custom location, e.g. fileadmin/template/form/Frontend/Partials/Field/
2.) Make changes in the file you just copied to your custom location.
3.) Check form frontend output if changes are visible in markup (your changes will not be visible in the form output).

Can anyone confirm?

Thanks!

Actions

Also available in: Atom PDF