[TYPO3-german] Standalone-View und Typoscript-Libs
Johannes C. Schulz - EnzephaloN IT-Solutions
info at enzephalon.de
Wed Jul 2 12:48:58 CEST 2014
Hallo Philipp
Weil ich wahrscheinlich nicht weiß wie es richtig gemacht wird und auch keine Resource dazu finden konnte.
Ich habe zum Beispiel im Typoscript folgendes Objekt:
lib.logo = IMAGE
lib.logo{
file = {$path_template}gfx/logo.png
params = class="logo"
titleText = Logo
altText = Logo
wrap = <div id="logo"><a href="http://www.domain.de">|</a></div>
}
Normal bekomme ich die Ausgabe mit dem cObject hin, im Standaloneview-Template nicht.
Wenn ich über das configurationManagementInterface mir das Typoscript-Setup in ein Array lade und dann dem $renderer->assign('ts',$typoscript); übergebe, kommen die Werte auch nicht im Standalone-View-Template an - geschweigedenn daß es Objekte sind.
Kannst Du mir erklären, wie es richtig wäre?
Johannes
-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von Philipp Gampe
Gesendet: Mittwoch, 2. Juli 2014 12:37
An: typo3-german at lists.typo3.org
Betreff: Re: [TYPO3-german] Standalone-View und Typoscript-Libs
Hi Johannes,
Johannes C. Schulz - EnzephaloN IT-Solutions wrote:
> Ist es möglich in einem Standalone-View ($emailView =
> $this->objectManager->get('TYPO3\\CMS\\Fluid\\View\\StandaloneView');)
> auf die Libs des Typoscript zuzugreifen? <f:cObject
> typoscriptObjectPath=“lib.irgendwas“/> liefert ein leeres Resultat :( .
Warum übergibst du nicht einfach die Werte als Variablen an das Template?
Grüße
--
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation – Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!
_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
More information about the TYPO3-german
mailing list