DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:templates:detail.php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devel:templates:detail.php [2009-08-30 09:32] andidevel:templates:detail.php [2023-09-24 00:51] (current) Klap-in
Line 1: Line 1:
-====== detail.php Template ======+====== detail.php template file ======
  
-This template defines how the image detail page looks.+This template file defines how the image detail page looks.
  
-FIXME  +See for the implementation at [[xref>lib/tpl/dokuwiki/detail.php]] for the detail page of the 'dokuwiki' template.
- +
-For a newbie: Please at least some sample code, so the whole thing works.+
  
 ===== Image Metadata ===== ===== Image Metadata =====
  
-Image metadata can be accessed through the [[xref>tpl_img_getTag]] function. The function accepts either a single tag name or an array of tag names. When multiple tags are passed the function will return the first non-empty tag.+The default detail page shows image metadata below the image. This can be configured via the ''conf/metadata.php'' and ''conf/metadata.local.php'' files. See [[:exif|EXIF and IPTC metadata]] for more details. 
 + 
 +You can show the metadata tags as a description list by calling the [[xref>tpl_img_meta()]]. When you like to display it differently, you can retrieve the metadata tags with [[xref>tpl_get_img_meta()]], and create your own html. 
 + 
 +Image metadata can be accessed through the [[xref>tpl_img_getTag()]] function. The function accepts either a single tag name or an array of tag names. When multiple tags are passed the function will return the first non-empty tag.
  
 <code php> <code php>
Line 16: Line 18:
  
 // try multiple locations: // try multiple locations:
-echo tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));+echo tpl_img_getTag(
 +    'Iptc.Byline',  
 +    'Exif.TIFFArtist',  
 +    'Exif.Artist',  
 +    'Iptc.Credit' 
 +]);
 </code> </code>
  
Line 26: Line 33:
 Simple.Camera Simple.Camera
 Simple.Title Simple.Title
 +
 Date.Time Date.Time
 Date.TimeSource Date.TimeSource
Line 35: Line 43:
 Date.LatestTimeSource Date.LatestTimeSource
 Date.LatestTimeStr Date.LatestTimeStr
 +
 File.Name File.Name
 File.Path File.Path
Line 45: Line 54:
 File.Format File.Format
 File.Url File.Url
 +
 Exif.ImageDescription Exif.ImageDescription
 Exif.Make Exif.Make
Line 154: Line 164:
 Exif.OECF Exif.OECF
 Exif.EXIFVersion Exif.EXIFVersion
-Exif.DatetimeOriginal +Exif.DateTimeOriginal 
-Exif.DatetimeDigitized+Exif.DateTimeDigitized
 Exif.ComponentsConfiguration Exif.ComponentsConfiguration
 Exif.CompressedBitsPerPixel Exif.CompressedBitsPerPixel
Line 222: Line 232:
 Exif.GPSDestDistanceRef Exif.GPSDestDistanceRef
 Exif.GPSDestDistance Exif.GPSDestDistance
 +
 Iptc.SuplementalCategories Iptc.SuplementalCategories
 Iptc.Keywords Iptc.Keywords
Line 243: Line 254:
 </code> </code>
  
-The [[develonly]] version supports read only access to [[http://www.adobe.com/products/xmp/|XMP]] metadata. Fieldnames are named ''Xmp.dc:title'' and alike.+DokuWiki supports read only access to [[http://www.adobe.com/products/xmp/|XMP]] metadata. Fieldnames are named ''Xmp.dc:title'' and alike. 
 + 
 + 
 +=====See also===== 
 +  * [[devel:templates|DokuWiki Template Development]] 
 +  * [[main.php]] – general layout template file 
 +  * [[mediamanager.php]] – the media-selection popup template file
devel/templates/detail.php.1251617530.txt.gz · Last modified: 2009-08-30 09:32 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki