fal

Extending sys_file_reference (FAL)

ε祈祈猫儿з 提交于 2019-12-08 03:22:05
问题 I want to extend sys_file_reference with a own field. So i created the field and the TCA. In the backend the field is usable, but i cant refer to the field in my fluid template. ext_tables.php: CREATE TABLE sys_file_reference ( nofollow int(11) DEFAULT '0' NOT NULL, ); Configuration/TCA/Overrides/sys_file_reference.php: $tempColumns = array( 'nofollow' => array( 'exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'Link als Nofollow?', 'config' => array( 'type' => 'check', 'default' =

How can I get the category object in Fluid of Typo3 Content Element Pictures?

萝らか妹 提交于 2019-12-04 14:26:49
after a long time of Google, I can get the categories of FAL Objects in Typo3 7.6 Fluid. But I can only return a String. I want to get an object like {data}. What I do: TypoScript lib.category = CONTENT lib.category { table=sys_category wrap=| select { pidInList = root,0,1 recursive = 99 max=10 selectFields=sys_category.title,sys_category.uid join = sys_category_record_mm on sys_category_record_mm.uid_local = sys_category.uid join sys_file_metadata on sys_file_metadata.uid = sys_category_record_mm.uid_foreign join sys_file_reference on sys_file_reference.uid_local = sys_file_metadata.file

TYPO3 6.2 - how to create FileReference in frontend (FE)?

限于喜欢 提交于 2019-12-03 13:37:32
I have the hypothetical Zoo extension in which I've Animal model with photo field and FrontEnd (FE) plugin with typical CRUD actions. photo field is typical FAL's FileReference and it works perfectly in backend (BE) with common TCA IRRE config. I'm able to successful upload the file to the storage, it's visible in the Filelist module, and I can use it in BE during my Animal editing, anyway I can't create FileReference within my FE plugin. My current approach looks like this: /** * @param \Zoo\Zoo\Domain\Model\Animal $animal */ public function updateAction(\Zoo\Zoo\Domain\Model\Animal $animal)