Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   FAQ (Часто задаваемые вопросы) (http://forum.typo3.ru/forumdisplay.php?f=26)
-   -   Content HEADER в FCE (http://forum.typo3.ru/showthread.php?t=1439)

Awdey 22.05.2006 18:51

Content HEADER в FCE
 
Подскажите как зацепить в FCE поле из контента, например header.

Valery Romanchev 22.05.2006 20:14

до последнего времени - никак.
я эту тему выяснял месяцев 8 назад.

Сейчас это только в CVS:

Цитата:

--------------------
Yesterday I commited one [long awaited] *experimental* feature to CVS. I
must repeat: this feature is experimental. It means that it can change
in any moment or even temporarily disappear.

The feature is about accessing "parent" record from <TypoScript> section
in DS. I.e. now you can access fields from tt_content and pages, where
current flexform belongs.

Here is an example how to use it:

<TypoScript>
10 = TEXT
10.data = register:tx_templavoila_pi1.parentRec.uid
10.wrap = My "uid" is |<br />

10 = TEXT
10.data = register:tx_templavoila_pi1.parentRec.pid
10.wrap = My "pid" is |<br />
</TypoScript>

So, register is defined for each field in the corresponding table. This
is supported for FCE/page DSes and Local processing in corresponding
TOs. This is *not* supported for static data structures and result of
such usage inside static data structures is declared as "undefined"
(meaning: if it explodes your server, we are not responsible ;)).

Again repeat: this feature is experimental and can be changed in future.
You were warned!

Dmitry.
--
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


Awdey 22.05.2006 20:31

понял,
спасибо!


Часовой пояс GMT +4, время: 05:15.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot