[TYPO3-irre] lost relation on copying
bernd wilke
x00nsji02 at sneakemail.com
Thu Sep 18 00:30:20 CEST 2008
Oliver Hader schrieb am Wed, 17 Sep 2008 21:55:11 +0200:
> Hi Bernd,
>
> bernd wilke schrieb:
>> Hello,
>>
>> when I copy a page, which contains IRRE-records, the relations are lost
>> (all records are copied, but the container doesn't know about his
>> childs). As it is very laborious to insert the relation with phpmyadmin
>> I wish to switch IRRE-handling to 'normal' record-reference, where I
>> can select records in a pop-up.
>>
>> As this usage may help also in other cases (I hope copying will work
>> someday):
>> is it possible to switch handling in an easy way (without
>> TCA-modifying), or is there a BE-module which can handle this?
>
> What TYPO3 version are you using?
> Are the child records itself are correctly copied? Of what type are the
> IRRE child records (1:n, etc.)?
>
> olly
typo3: 4.2.1
children: copied well
1:n (commaseparated list)
tca-definition of children (the record has 5 identical fields 'frame1' to
'frame5'):
"frame1" => Array (
"exclude" => 1,
"label" => "LLL:EXT:dm_coll/
locallang_db.xml:tx_dmcoll_collections.frame1",
"config" => Array (
"type" => "inline",
"foreign_table" => "tt_content",
"foreign_table_where" => "AND tt_content.colPos=3 AND
tt_content.pid=###CURRENT_PID###",
"size" => 10,
"minitems" => 0,
"maxitems" => 100,
"wizards" => Array(
"_PADDING" => 2,
"_VERTICAL" => 1,
"add" => Array(
"type" => "script",
"title" => "Create new record",
"icon" => "add.gif",
"params" => Array(
"table"=>"tt_content",
"pid" => "###CURRENT_PID###",
"setValue" => "prepend"
),
"script" => "wizard_add.php",
),
"list" => Array(
"type" => "script",
"title" => "List",
"icon" => "list.gif",
"params" => Array(
"table"=>"tt_content",
"pid" => "###CURRENT_PID###",
),
"script" => "wizard_list.php",
),
"edit" => Array(
"type" => "popup",
"title" => "Edit",
"script" => "wizard_edit.php",
"popup_onlyOpenIfSelected" => 1,
"icon" => "edit2.gif",
"JSopenParams" =>
"height=350,width=580,status=0,menubar=0,scrollbars=1",
),
),
)
),
maybe some problems with "foreign_table_where" ?
but children have their correct columns after copy.
copying just the record, works well and all copied children are inserted
and available.
just a copy of the page with included record and children looses the
children-information.
bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-project-irre
mailing list