Extension Key: em_referencesCopyright 2007 Ingmar Schlecht <ingmar@typo3.org>
Sponsored by Externes Management Arend, Silke Arend
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
Basically, this extension introduces a new field type for relating images to content elements which doesn't copy the images to the uploads/ folder but just keeps a reference to the images in the fileadmin/ folder, so when you update the images, they're automatically used in all content elements referencing them.
This is essentially achieved by those changes:
A new “internal_type” of the group field called “file_references” is implemented in the Core TCEForms and TCEMain classes. The new field type “file_references” can be used for other tables and fields as well.
A new database field of the newly introduced field type is added to the tt_content table. The field is called “tx_emreferences_filereferences”
Some TypoScript (shipped in the file ext_typoscript_setup.txt) makes sure the images from the new field are used for the content rendering in the frontend instead of the contents of the old “images” field. If the new field is empty, the old images field is used as a fallback, which ensures backwards compatibility.
This extension requires TYPO3 4.1 and PHP4 or later in order to work correctly.
Note: This extension uses the XCLASS mechanism in order to add Core functionality to the classes t3lib_tceforms and t3lib_tcemain. Therefore, no other extensions XLASSing the files in question must be present for this extension to work correctly.