mediameta.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * This configures which metadata will be editable through
  4. * the media manager. Each field of the array is an array with the
  5. * following contents:
  6. * fieldname - Where data will be saved (EXIF or IPTC field)
  7. * label - key to lookup in the $lang var, if not found printed as is
  8. * htmltype - 'text', 'textarea' or 'date'
  9. * lookups - array additional fields to look up the data (EXIF or IPTC fields)
  10. *
  11. * The fields are not ordered continuously to make inserting additional items
  12. * in between simpler.
  13. *
  14. * This is a PHP snippet, so PHP syntax applies.
  15. *
  16. * Note: $fields is not a global variable and will not be available to any
  17. * other functions or templates later
  18. *
  19. * You may extend or overwrite this variable in an optional
  20. * conf/mediameta.local.php file
  21. *
  22. * For a list of available EXIF/IPTC fields refer to
  23. * http://www.dokuwiki.org/devel:templates:detail.php
  24. */
  25. $fields = array(
  26. 10 => array('Iptc.Headline',
  27. 'img_title',
  28. 'text'),
  29. 20 => array('',
  30. 'img_date',
  31. 'date',
  32. array('Date.EarliestTime')),
  33. 30 => array('',
  34. 'img_fname',
  35. 'text',
  36. array('File.Name')),
  37. 40 => array('Iptc.Caption',
  38. 'img_caption',
  39. 'textarea',
  40. array('Exif.UserComment',
  41. 'Exif.TIFFImageDescription',
  42. 'Exif.TIFFUserComment')),
  43. 50 => array('Iptc.Byline',
  44. 'img_artist',
  45. 'text',
  46. array('Exif.TIFFArtist',
  47. 'Exif.Artist',
  48. 'Iptc.Credit')),
  49. 60 => array('Iptc.CopyrightNotice',
  50. 'img_copyr',
  51. 'text',
  52. array('Exif.TIFFCopyright',
  53. 'Exif.Copyright')),
  54. 70 => array('',
  55. 'img_format',
  56. 'text',
  57. array('File.Format')),
  58. 80 => array('',
  59. 'img_fsize',
  60. 'text',
  61. array('File.NiceSize')),
  62. 90 => array('',
  63. 'img_width',
  64. 'text',
  65. array('File.Width')),
  66. 100 => array('',
  67. 'img_height',
  68. 'text',
  69. array('File.Height')),
  70. 110 => array('',
  71. 'img_camera',
  72. 'text',
  73. array('Simple.Camera')),
  74. 120 => array('Iptc.Keywords',
  75. 'img_keywords',
  76. 'text',
  77. array('Exif.Category')),
  78. );