Bug #71781

Fluid_styled_content: Templates path is wrong

Added by Stefan Padberg over 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Fluid Styled Content
Target version:
Start date:
2015-11-23
Due date:
% Done:

100%

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

Description

As the core team is in charge of 'fluid_styled_content' I address this bug report here.

In the extension 'fluid_styled_content' there is configuration possibility for 'lib.fluidContent.templatesRootPaths'. Default is:
'EXT:fluid_styled_content/Resources/Private/Templates/Content/'

If this is configured to 'fileadmin/someDirectory/Resources/Private/Templates' it doesn't work: the files in the custom directory are not read.

It works with 'fileadmin/someDirectory/Resources/Private/Templates/Content/'. This behaviour seems not to be in conformity with the extbase/fluid conventions and should therefore be changed - or well documented.

#1

Updated by Mathias Schreiber over 6 years ago

  • Category set to Fluid Styled Content
#2

Updated by Tobias Wollender over 6 years ago

Where are your custom template files located? In "fileadmin/someDirectory/Resources/Private/Templates/Content/"? So you have to add this path to your templateRootPaths. If you use "fileadmin/someDirectory/Resources/Private/Templates/" you should put your template files directly there, and not in a subfolder. So templateRootPaths always points to the folder where the template files are stored. So I think this isn't a bug, but rather a misconfiguration on your side, no?

#3

Updated by Stephan Großberndt over 6 years ago

  • Status changed from New to Needs Feedback
#4

Updated by Stefan Padberg over 6 years ago

According to extbase/fluid conventions, the templates directory is located at 'EXT:Resources/Private/Templates'. This IS the one and only templates directory, right?

In 'fluid_styled_content' the template directory is configured as 'EXT:Resources/Private/Templates/Content', which is clearly in contradiction with the above extbase/fluid conventions, right? It should be 'EXT:Resources/Private/Templates'.

Subdirectories in the template directory come with extbase repositories. If you really want the '/Content' subdirectory to be the templates directory you could move its content one level above in the real templates directory.

For a user it is not advisible to configure subdirectories of the templates directory as template directory.

#5

Updated by Markus Klein over 6 years ago

  • Status changed from Needs Feedback to New
  • Assignee set to Markus Klein

I must admit this is indeed misleading to known behaviour of Fluid integration.
Will bring this up for discussion in the AC team.

#6

Updated by Gerrit Code Review over 6 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 https://review.typo3.org/45056

#7

Updated by Markus Klein over 6 years ago

  • Target version set to 7.6.1
#8

Updated by Markus Klein over 6 years ago

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

Updated by Riccardo De Contardi almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF