themarcos
Goto Top

TYPO3 6 PHP als Inhaltselement einfügen

Hallo zusammen

Ich habe folgendes Problem mit TYPO3 6 (Version 6.1.7).

Grundsätzlich müsste ich vom Modul tx_news eine Listenansicht haben, wo nicht der Teasertext, sondern der Inhaltstext ausgelesen wird. Ich habe versucht, ein neues Template für tx_news zu erstellen (Ext-Ordner von News kopiert, Template geändert und via TypoScript im Haupttyposcript zugewiesen). Leider ohne Erfolg.

Variante 1) seit TYPO3 6 mit Overlays arbeiten
 
[globalVar = TSFE:id=65]
        view.overlays.tx_news.partialRootPath = fileadmin/templates/ext/news/Resources/Private/Partials/
        view.overlays.tx_news.templateRootPath = fileadmin/templates/ext/news/Resources/Private/Templates/
        view.overlays.tx_news.layoutRootPath =  fileadmin/templates/ext/news/Resources/Private/Layouts/
[global]

Variante 2) normale Auslagerung
 
[globalVar = TSFE:id=65]
plugin.tx_news {
        view {
                templateRootPath = fileadmin/templates/ext/news/Resources/Private/Templates /
                partialRootPath = fileadmin/templates/ext/news/Resources/Private/Partials/
                layoutRootPath = fileadmin/templates/ext/news/Resources/Private/Layouts/
        }
}


Darum kam mir die Idee, via PHP Datei die News auszulesen. Jedoch kann man ab TYPO3 6 ja keine PHP Scripte oder Dateien mehr einbinden!!! face-sad
Ich habe schon Beispiele im Internet gefunden (z.B.: http://www.typo3.net/forum/thematik/zeige/thema/104773/?show=1) aber die funktionieren bei mir nicht bzw. die Lösung ist auch nicht die richtige. Ich brauche ja nicht ein global eingebundenes PHP Script, sondern ein PHP Script als Inhaltselement.

Kann mir jemand weiterhelfen?

Vielen, vielen Dank!

Gruss
TheMarcoS

Content-Key: 233296

Url: https://administrator.de/contentid/233296

Printed on: April 23, 2024 at 08:04 o'clock