Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] How to get TS config of content element in extension? within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; To make a long story short: - A content element "X" of pi1/tx_myext_pi1.php is present on a ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
To make a long story short:
- A content element "X" of pi1/tx_myext_pi1.php is present on a page - Another content element "Y" on the same page needs to ask code in tx_myext.php information about the first content element - the code in tx_myext.php knows which content element is "X" and even knows all info from tt_content for "X". - the code in tx_myext.php needs to know the TS configuration of "X". How can it find this?? Hope someone has any pointers to where I can get this info... -- Jigal van Hemert. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi!
Jigal van Hemert wrote: > To make a long story short: > > - A content element "X" of pi1/tx_myext_pi1.php is present on a page > - Another content element "Y" on the same page needs to ask code in > tx_myext.php information about the first content element > - the code in tx_myext.php knows which content element is "X" and even > knows all info from tt_content for "X". > - the code in tx_myext.php needs to know the TS configuration of "X". > How can it find this?? > > Hope someone has any pointers to where I can get this info... $GLOBALS['TSFE']->tmpl->setup['plugin.]['tx_myext_pi1.] is an array with configuration for plugin tx_myext_pi1. For example, if you have this TS: plugin.tx_myext_pi1 = USER plugin.tx_myext_pi1 { userFunc = whatever a { b = c } } You will have in setup: array( 'plugin.' => array( 'tx_myext_pi1' => 'USER', 'tx_myext_pi1.' => array( 'userFunc' => 'whatever', 'a.' => array( 'b' => 'c' ) ) ) ) There is one "but" though. If plugin uses flexform configuration, this configuration may override TS settings. -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/post-details/s...d_in_the_code/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hi Dmitry!
> Jigal van Hemert wrote: >> - the code in tx_myext.php needs to know the TS configuration of "X". >> How can it find this?? > $GLOBALS['TSFE']->tmpl->setup['plugin.]['tx_myext_pi1.] is an array with > configuration for plugin tx_myext_pi1. For example, if you have this TS: (...) > > There is one "but" though. If plugin uses flexform configuration, this > configuration may override TS settings. Thank you! That's exactly what I need! The "but" is no problem. I checked and in this case there is no flexform configuration possible, only TS. -- Jigal van Hemert. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-german] Flecible Content Element als Extension speichern | Dr. Ronald P. Steiner | typo3-german@lists.netfielders.de | 0 | 25.07.2008 23:34 |
| [TYPO3] T3 css for each content element: header + content | Finees Mendez | typo3-english@lists.netfielders.de | 3 | 27.05.2008 16:51 |
| [TYPO3-templavoila] no content displayed in a content element | lee perry | typo3-project-templavoila@lists.netfielders.de | 3 | 18.09.2007 08:59 |
| [TYPO3-templavoila] Data structure selector content missing inflexible content element | Hans van Dijk | typo3-project-templavoila@lists.netfielders.de | 5 | 06.06.2007 08:44 |
| [TYPO3] assign a content element to the end of a content area | Jamie Lawrence Jenner | typo3-english@lists.netfielders.de | 4 | 30.01.2007 17:02 |