Metadata, Viewing & Editing: unable to define my own
Permalink
Hi
I was been playing around with Metadata, Viewers and Editors as documented here:
http://www.concrete5.org/documentation/developers/files/metadata...
but with little success.
Following the instructions in that page (the very last paragraph) I have something like
in the on_start() event of my package's controller, and the corresponding <package dir>/elements/files/edit/text.php, however it seems that the setting always get overriden by those defined in file_types.php.
Am I missing something?
I was been playing around with Metadata, Viewers and Editors as documented here:
http://www.concrete5.org/documentation/developers/files/metadata...
but with little success.
Following the instructions in that page (the very last paragraph) I have something like
$ft->define('txt', t('Text'), FileType::T_TEXT, false, false, 'text', $pkg);
in the on_start() event of my package's controller, and the corresponding <package dir>/elements/files/edit/text.php, however it seems that the setting always get overriden by those defined in file_types.php.
Am I missing something?
I've submitted it as a possible bug:http://www.concrete5.org/index.php?cID=493237...
Are you trying to add your own custom Meta data to your header? If so, one way you could do it would be to use the "Header Extra Content" page attribute (found under 'properties' on the 'custom attributes' tab).
Hi, growthcurve
Thanks for your reply, but I'm afraid that we are not talking about the same. I mean "metadata, viewer and editors" as extensions to Concrete5's file manager, not metadata in the meta tag.
Thanks for your reply, but I'm afraid that we are not talking about the same. I mean "metadata, viewer and editors" as extensions to Concrete5's file manager, not metadata in the meta tag.