Project

General

Profile

Actions

Bug #81758

closed

Fluid paths chain depends on order within the PAGE-object

Added by Julian Hofmann almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2017-06-30
Due date:
% Done:

0%

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

Description

Changing the paths chain of templates for a plugin inserted via TypoScript has strange behaviour:
which chain configuration is active, depends on the order in the PAGE-object.

Example with EXT:indexed_seach:
We insert the plugin as normal content element and we'd like to insert a small searchbox via TS using other templates:

page = PAGE
page.5 = USER
page.5 {
  userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  vendorName = TYPO3\CMS
  extensionName = IndexedSearch
  pluginName = Pi2
  switchableControllerActions {
    Search {
      1 = form
      2 = search
    }
  }

  view =< plugin.tx_indexedsearch.view
  view.templateRootPaths.20 = myTemplatePath/Special/Templates/
  settings =< plugin.tx_indexedsearch.settings
}
page.20 < styles.content.get

Result:
Both plugins will be rendered using the templates from the TS object ("myTemplatePath/Special/Templates/").

Example 2:
Just change the order:

page = PAGE
# Now the content first
page.1 < styles.content.get
page.5 = USER
page.5 {
   #...
}

Result:
Both plugins will be rendered using the templates from the global plugin configuration.

Actions #1

Updated by Susanne Moog about 6 years ago

  • Category set to Fluid
Actions #2

Updated by Claus Due about 6 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF