Hi,
On 08/08/2017 13:11, Christian Tauscher wrote:
BUT: How can I tell exactly this record is a COPY?
the field 't3_origuid' seems not to be existing anymore.
Haven't dug really deep in it, but a COPY is done through
process_cmdmap() in the DataHandler. Using a combination of the hooks
pro
On 08/08/2017 04:41 PM, Christian Tauscher wrote:
if(strpos(key($pObj->datamap['tx_myext_table']), 'NEW') === 0) {
// do the stuff to be done
}
But this seems not to work and a really NEW record would be catched, too
Recently I was working on similar thing. I saw it as 'NEW12345'
Am 08.08.2017 um 13:11 schrieb Christian Tauscher:
> // t3_origuid is set? Yes, ist a Copy
>if(isset($fieldArray['t3_origuid'])) {
> $fieldArray['field1']++;
> $fieldArray['filed2']--;
>}
Ages ago I did use the workspace feature t3_origuid, this is set by the
core if its t
Hello dear Developers
I am about porting an Extention from T3-6.2 to T3-7.6+
in the original EXT I have used a Hook in case a record is copied the
increase some value:
function processDatamap_preProcessFieldArray(
&$fieldArray, $table, $id, &$reference
) {
// make sure only my table