Comments (3)
At the moment the Path to the template is build via extension key and object name as Standalone View:
https://github.com/lochmueller/autoloader/blob/master/Classes/Controller/ContentController.php#L54
I will check if there is a smarty integration for override (also set Partials-path)....
from autoloader.
I think there is..
I built something similar to your extension (on a much smaller scale) for custom content elements and I pretty much solved it like this:
` protected function initializeView(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view)
{
$configuration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$viewConfiguration = $configuration['view'];
if (isset($viewConfiguration['file'])) {
$this->view = $this->objectManager->get('TYPO3\CMS\Fluid\View\StandaloneView');
$this->view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($viewConfiguration['file']));
}
if (isset($viewConfiguration['layoutRootPaths'])) {
$this->view->setLayoutRootPaths($viewConfiguration['layoutRootPaths']);
}
if (isset($viewConfiguration['partialRootPaths'])) {
$this->view->setPartialRootPaths($viewConfiguration['partialRootPaths']);
}
}`
from autoloader.
Added with bb8552a
Perhaps we should add same "special" logic to change the templates just for a few content elements... I will check this in the next days...
from autoloader.
Related Issues (20)
- Documentation Cleanups HOT 3
- PHP 8.0 Warnings HOT 1
- Extension key missing in composer.json HOT 4
- $GLOBALS array cannot be passed by reference since PHP 8.1 HOT 2
- New Installation runs into many errors HOT 4
- Error after update to TYPO3 10 in autoloader 7.3.5 HOT 1
- PHP version constraint in ext_emconf.php doesn't match version constraint in composer.json HOT 1
- ContentObjects not working in Typo3 v11 HOT 1
- Undefined array key "columns" in Classes/Service/SmartObjectInformationService.php line 147 HOT 1
- TypeError when dataProcessing is added to ContentObject settings HOT 3
- Input fields of content elements not visible HOT 5
- The latest version 7.3.8 is available via Composer, but not via Extension Manager HOT 1
- PHP Warning "Undefined array key AUTOLOADER" in Extension Manager with PHP 8.1
- "Undefined array key" on composer install (TYPO3 11, PHP 8.0) HOT 1
- Check Broken Extension HOT 8
- TYPO3_MODE should not be used in ext_tables.php and ext_localconf.php, use defined('TYPO3') or die(); HOT 1
- t3ver_label not supported any more
- Problems with FlexForms for ContentObjects HOT 2
- typo3 12 support HOT 4
- php 8 attributes instead of annotations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoloader.