TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] How to get TS config of content element in extension?

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 19.08.2008, 21:05
Jigal van Hemert
Gast
 
Beiträge: n/a
Standard [TYPO3] How to get TS config of content element in extension?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 20.08.2008, 08:38
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How to get TS config of content element in extension?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 20.08.2008, 10:38
Jigal van Hemert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How to get TS config of content element in extension?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:55 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39