[TYPO3-dam] DAM 1.1 alpha01 for download

R. van Twisk typo3 at rvt.dds.nl
Mon Aug 21 19:36:23 CEST 2006


R. van Twisk wrote:
> René Fritz wrote:
>> ... here
>>
>> http://typo3lab.colorcube.de/dam.html
>>
>>
>> Main changes are:
>>
>> Most of the code - were it makes sense - is working in FE now. Example 
>> Plugin will come with next alpha.
>>
>> Reimplemented command modules (delete, rename, ...). Prepared for 
>> 'multi-actions' (see below).
>>
>> Extension 'mmforeign' was rewritten. It no longer XCLASS the MM 
>> handling of TCEmain but introduce a way to implement own field types. 
>> You know 'user' fields in TCA, but they are not handled by TCEmain, 
>> the data is written unprocessed to DB. Now you can implement your own 
>> field DB handling. The MM stuff just use that new interface.
>>
>> Media>List shows dummy selectboxes for 'multi-actions'. Those commands 
>> can process a bunch of selected files, like 'move to other folder'.
>>
>> DAM XCLASS TCE file handling which allows DAM to stay in sync when 
>> non-DAM-aware code make file changes.
>>
>> Element browser for folder and categories. TCEforms fields for  
>> folder, selections and categories.
>>
>> etc.
>>
>>
>> A more detailed changelog will come with next alpha.
>>
>> René
>>
> 
> 
> Hey René,
> 
> Discard my last mail(s) to you... :)
> 
> I especially need the ability to add images to DAM on the FE side
> (I hope that makes sense...) I will download the alpha version
> and report behind this thread my findings about adding images
> to DAM from FE.
> 
> thanks,
> Ries van Twisk
> 
> 


Hey René,

I just tested the alpha version to insert a asset (image in my case)
to DAM. This basicly failed with the same error message.

----
Warning: Variable passed to each() is not an array or object in 
/opt/var/www/typo3_src-4.0/t3lib/class.t3lib_tcemain.php on line 4151

Fatal error: Call to a member function on a non-object in 
/opt/var/www/typo3_src-4.0/t3lib/class.t3lib_tcemain.php on line 5623
----

I think I will wait for your Demo extension and I hope
FE adding of assets will be part of the upcomming release.


This is what I do in my function
	function addNewDAMRecord($fName, $meta, $pid = 0) {
		$aPathInfo = $this -> myPathInfo($fName);

		$this -> __getAdditionalMetafromPID(&$meta, $pid);
		$tx_dam = new tx_dam();
		$tx_dam_db = new tx_dam_db();
		$uid = $tx_dam -> index_autoProcess($fName, false);

		// $uid = $tx_dam -> file_isIndexed($fName);
		
		$meta['uid'] = $uid;
		$ret = $tx_dam_db -> insertUpdateData($meta);

		t3lib_div::print_array($ret);
		$ret = $ret['fields']['uid'];

		return $ret;
	}




I 'think' I call tx_dam correctly, however I am not sure.


kind regards,
Ries



More information about the TYPO3-project-dam mailing list