The Slides of th Talk about the FileAbstraction Layer at the T3CON12 in Québec City, Canada.
Gives an Overview about Concepts, Changes for Editors as well as a short introduction in usage for Development.
2. AGENDA
Introduction into File Abstraction
current State in TYPO3
goals and concepts
http://theplayunderground.com/images/Folder%20Stack.jpg
The File Abstraction Layer in T YPO3 6.0
influences on editors
architecture
FAL vs. DAM
Developers Information: Customize FAL
custom Drivers
usage in Extensions
extending FAL
2
3. STEFFEN RITTER
Germany, near Frankfurt
Studied Computer Science
Freelancer for T YPO3 Development
T YPO3 since 2006
Core Team Member
Release Manager 4.7
3
5. INTRODUCTION: CURRENT STATE
plain PHP functions ( fopen, is_dir, …)
operating system restriction: Windows vs. Unix
files in T YPO3 site root
Usage copied to uploads/
thumbnails copied to typo3temp/
obtains disk space
replacing files dif ficult
meta-data distributed
5
6. INTRODUCTION: GOALS
omit superfluous copies
reference files
central meta-data management
no direct file-system access
external file-systems
„DAM“ with core support
6
7. INTRODUCTION: HISTORY AND FUTURE
planned since years
several attempts / refactorings
huge task DAM not core
finally: BLE-project with planned integration in 4.7
released with 6.0alpha1
improvements and actions welcome
7
8. INTRODUCTION: CONCEPTS
Resource – element in file-system
File – real file in file -system
Folder – structuring unit of file -system
Folder in local file-system, tag or album in Flickr
ProcessedFile – variants
References File
8
22. ARCHITECTURE: IDENTIFY A RESOURCE
Which Identifier to use?
Combined-Identifier:
TypoScript,
Hand over file to FAL
manual references
Uid
internally (extensions, php, database)
Whenever possible (better performance)
22
23. ARCHITECTURE: IDENTIFY A RESOURCE
Gimmick / Backwards compatibilty: Legacy Files
„Virtual Storage“
uid: 0
local-driver
Root at TYPO3_site
not indexed!
Access all files:
0:uploads/pics/bla.jpg
0:typo3conf/ext/myEXT/ext_icon.gif
23
24. ARCHITECTURE:
STORAGE AND MOUNTPOINTS
Top-Level in file-tree
Drivers can ship custom config
WebDAV: Username, Password, …
Of fline/Online detection for
Remote data sources
24
25. ARCHITECTURE:
STORAGE AND MOUNTPOINTS
„FileMounts“: new definition
Label
Storage
All Folders in Storage selectable
User-FileMounts „filter“ Storage
All storages in filetree
Only accessible folder shown
25
26. ARCHITECTURE: COLLECTIONS
New collection Interfaces since T YPO3 4.7
Central storage/grouping of records/data
Similar JCF / STL Container
FAL extends Collection:
Folder-Collection: All files within a folder
Static-Collection: pre selected files
Extensions/Upload-CE uses „collection“
Central exchange of files
26
28. FILE ABSTRACTION LAYER AND D.A.M.
FAL is NOT compatible to DAM
FAL won‘t replace DAM
FAL concentrates on file meta -data
DAM concentrates on file -content meta-data
DAM 2.0 Media Extension
Static collections - FAL
Folder collections - FAL
Tag/Filter collection - t.b.d
Migration possible (to a certain extend)
New projects with DAM??? Start with 6.0alpha1 and FAL!!!
28