DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Media: Content/DAM reference usage¶
Author: | Kasper Skårhøj |
---|---|
Created: | 2002-11-01T00:32:00 |
Changed: | 2005-07-20T16:34:38 |
Author: | René Fritz |
Email: | r.fritz@colorcube.de |
Info 3: | |
Info 4: |
Media: Content/DAM reference usage¶
Extension Key: dam_ttcontent
Copyright 2003-2005, René Fritz, <r.fritz@colorcube.de>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.com
Table of Contents¶
Media: Content/DAM reference usage 1
Introduction 1
Installation 1
Adminstration 2
To-Do 2
Introduction¶
The DAM allows to use file references instead of the normal copy mechanism TYPO3 uses to bind files to content elements.
The Images form field at the bottom was added by this extension and allows to select DAM file references. It is possible to remove the original Images field which creates copies of the selected files in uploads/.
Installation¶
First you have to enable the DAM References feature in the extension manager configuration form of the DAM extension:
The next step is to configure this extension which allows to configure which content elements should be modified.
In the above example the original Images form field of the Text w/image content element will be removed so the user can select files as reference only.
Adminstration¶
In ext_localconf.php you can find the TypoScript code used to activate the references functionality which looks like this:
includeLibs.tx_damttcontent = EXT:dam/lib/class.tx_dam_tcefunc.php
temp.tx_dam.fileList < tt_content.image.20.imgList
tt_content.image.20.imgList >
tt_content.image.20.imgList.cObject = USER
tt_content.image.20.imgList.cObject {
userFunc = tx_dam_tceFunc->fetchFileList
refField = tx_damttcontent_files
additional.fileList < temp.tx_dam.fileList
additional.filePath < tt_content.image.20.imgPath
}
tt_content.image.20.imgPath >
tt_content.image.20.imgPath =
As you see a user function is used to fetch the file references. If both Images fields are activated, files from the the original upper one will be rendered first.
To-Do¶
Have a look here what's planned for an enhanced Image form element:
http://typo3.org/development/projects/digital-asset-management /planned-features/
Media: Content/DAM reference usage - 2