Storing data in file attributes versus in database tables ?
Permalink
Hi, I've just learned that you can attach attributes to files, and read this :
http://www.concrete5.org/community/forums/customizing_c5/mysql-addi...
Now, I am a little confused... if you need to store data about files, for example if you have captions for image files, and a fileset ID for each image (not necessarily a fileset ID to which the image belongs), would you rather store them in file attributes or in an additional database table ?
http://www.concrete5.org/community/forums/customizing_c5/mysql-addi...
Now, I am a little confused... if you need to store data about files, for example if you have captions for image files, and a fileset ID for each image (not necessarily a fileset ID to which the image belongs), would you rather store them in file attributes or in an additional database table ?
There are already built in attributes for captions, title, description, width, height, etc.
Here's a link to the documentation for the file object if that helps.
http://www.concrete5.org/documentation/developers/files/files-and-f...
Also, lots of helpful code examples here:
http://www.weblicating.com/doku/doku.php?id=cheatsheet/#.U9XNZPmIDg...