[TYPO3-dev] TYPO3 4.x html templating good practice question
Nicole Cordes
cordes at cps-it.de
Mon Jun 27 14:40:34 CEST 2011
I would add additional typoscript parameter to E1's config which you can
access by your extension. Either you can have your additional html template
assigned here or just have a few stdWrap definitions.
Hope this helps a bit.
Cheers,
Nicole
-----Ursprüngliche Nachricht-----
Von: typo3-dev-bounces at lists.typo3.org
[mailto:typo3-dev-bounces at lists.typo3.org] Im Auftrag von Ivano Luberti
Gesendet: Montag, 27. Juni 2011 10:51
An: typo3-dev at lists.typo3.org
Betreff: [TYPO3-dev] TYPO3 4.x html templating good practice question
Hello all, I have a question about good practice in using the HTML template
inside an extension.
I'm developing an extension (myExt) that extends another extension E1 that
has an own template used to display content by one of its plugins.
I have to add to that content some custom content.
I can use a hook in this extension that provides an instance of the whole
plugin and therefore I can access the template used by E1 and modify the
content.
However the content to be displayed by myExt would require its own template.
I wonder which is the best practice in this situation:
1) modify E1 template, extending the original provided by E1, configure
E1 to use it and then use my custom markers in myExt
2) providing a separate template and integrate the content generated from it
into the E1 template
If 2) is the best option, how can I load the template in myExt: when you
develop a plugin you have the main method with the conf parameter already
populated.
But in this case?
--
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list