info : metadata or description of file

andrewm - November 10, 2006 - 12:25
Project:Filebrowser Extensions
Version:4.7.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

In regards to the doco of the settings/Filebrowser Extensions/Profile

when configuring what fields are displayed, the column 'info' should display metadata or description of file

"info : metadata or description of this file as found in nearby info filesinfo : metadata or description of this file as found in nearby info files"

whats the format of these info files, and where should they be located?

Apologies if i have missed something.

#1

dman - November 11, 2006 - 14:14

descript.ion files are working much the same as they did in the original filebrowser.
Every directory may optionally have a file named either descript.ion or files.bbs
containing simple one-line per file descriptions like:

sundaze2.jpg DJ outside in the sun
gb1.jpg Yard in the sun
layout-map.gif A map

It's just filename-whitespace-description, so
sundaze2.jpg   DJ outside in the sun
gb1.jpg        Yard in the sun
layout-map.gif A map

is just as valid.
(Quoted filenames should also be accepted, but currently are not)

This format was used (among other places) by ACDSee image indexer and is not complex, but does the job.
According to the original filebrowser, you can also declare fancy callbacks inside the description file itself, but I've not developed that way.

Instead, you can see how filebrowser_cells.php does this in filebrowser_get_cell_info() and possibly impliment another parser if you wanted to (for example) keep your metadata in an XML syntax.
Extending this to include, say, keywords like

sundaze2.jpg   DJ outside in the sun|music,party,photo

would be nice.

#2

dman - October 10, 2008 - 06:24
Status:active» closed

Retired

 
 

Drupal is a registered trademark of Dries Buytaert.