Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Разработка расширений / TYPO3 extension development (http://forum.typo3.ru/forumdisplay.php?f=38)
-   -   userFunc в select (http://forum.typo3.ru/showthread.php?t=9947)

brd 24.02.2012 17:41

userFunc в select
 
Подскажите можно ли использовать для построения массива select item, массива параметров, с помощью userFunc? Если возможно то где рыть?

dmartynenko 24.02.2012 18:48

Открываете документ doc_core_tca (версии 4.6.0 или ниже).

Ищете раздел: ['columns'][field name]['config'] / TYPE: "select"

Смотрите описание параметра itemsProcFunc
Цитата:

PHP function which is called to fill / manipulate the array with elements.

The function/method will have an array of parameters passed to it (where the item-array is passed by reference in the key 'items'). By modifying the array of items, you alter the list of items.
For more information, see how user-functions are specified in the section about 'wizards' some pages below here.

brd 24.02.2012 20:09

Спасибо помоголо! Кстати это и
 
Цитата:

Сообщение от dmartynenko (Сообщение 33158)
Открываете документ doc_core_tca (версии 4.6.0 или ниже).

Ищете раздел: ['columns'][field name]['config'] / TYPE: "select"

Смотрите описание параметра itemsProcFunc

Кстати решение это проблемы помогло воплотить ваше придложение №2. СПАСИБО!!!!!!!


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

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