Hi,
I really havo no clue, where to start.
I am really sure I need to use itemsProcFunc in tca of an extension.
But I do not know where to put the code.
My tca looks like this right now, but where should i put the function
which manipulates my data?
"crossreferences" => Array (
1. Create PHP file for a class + function (class.tx_wmpfvideos_db.php).
2. Create class (tx_wmpfvideos_db) + function (crossreference) in that file.
3. Include the file in ext_tables.php:
include_once(t3lib_extMgm::extPath($_EXTKEY).'class.tx_wmpfvideos_db.php');
4. Set 'itemsProcFunc' => 'tx_w
Hi Tomas.
Thank you very much.
Can you tell me how to get ###CURRENT_PID### used in the class? I
doesn't seems that I can use it directly.
Regards
Jeppe D.
Tomas Mrozek skrev:
> 1. Create PHP file for a class + function (class.tx_wmpfvideos_db.php).
>
> 2. Create class (tx_wmpfvideos_db) +
Something very mysterius is happening.
After chosing something in the selectbox i Save and i FE my changes are
shown very fine. But when I want to edit the post again, nothing is
shown in the selected bx to the left.
How can that be?
TCA:
"crossreferences" => Array (
> Can you tell me how to get ###CURRENT_PID### used in the class?
Well, there are two objects passed to your function:
crossreference($PA, $fobj)
$PA['items'] contains the items of the select box but check what else
$PA has to offer. :)
Tomas Mrozek
_
I found out why some of them disappears. It is related to the
"foreign_table" => "tx_wmpfvideos_videos",
"foreign_table_where" => " AND
tx_wmpfvideos_videos.pid =
###CURRENT_PID### ORDER BY tx_wmpfvideos_videos.person",
earlier in the TCA.
Do you
> Do you know how to use ###CURRENT_PID### in the class?
###CURRENT_PID### is just a marker that is replaced in the WHERE
statement by the correct PID. See some other markers:
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/4/2/
To get the pid inside so
I found the current_pid in $PA.
But yes, that is what i am trying to do. Only show videos that are in
the same sysFolder as the current video.
Jeppe D.
Tomas Mrozek skrev:
>> Do you know how to use ###CURRENT_PID### in the class?
>
> ###CURRENT_PID### is just a marker that is replaced in th