DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

devel:templates:detail.php

detail.php template file

This template file defines how the image detail page looks.

See for the implementation at lib/tpl/dokuwiki/detail.php for the detail page of the 'dokuwiki' template.

Image Metadata

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 and IPTC metadata for more details.

You can show the metadata tags as a description list by calling the tpl_img_meta(). When you like to display it differently, you can retrieve the metadata tags with tpl_get_img_meta(), and create your own html.

Image metadata can be accessed through the 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.

// access a single tag
echo tpl_img_getTag('Date.EarliestTime');
 
// try multiple locations:
echo tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));

The following tags are available:

Simple.Raw
Simple.Camera
Simple.Title

Date.Time
Date.TimeSource
Date.TimeStr
Date.EarliestTime
Date.EarliestTimeSource
Date.EarliestTimeStr
Date.LatestTime
Date.LatestTimeSource
Date.LatestTimeStr

File.Name
File.Path
File.Size
File.NiceSize
File.UnixTime
File.Width
File.Height
File.Mime
File.Format
File.Url

Exif.ImageDescription
Exif.Make
Exif.Model
Exif.Orientation
Exif.XResolution
Exif.YResolution
Exif.ResolutionUnit
Exif.Software
Exif.DateTime
Exif.Artist
Exif.WhitePoint
Exif.PrimaryChromaticities
Exif.YCbCrCoefficients
Exif.YCbCrSubSampling
Exif.YCbCrPositioning
Exif.ReferenceBlackWhite
Exif.Copyright
Exif.ExifIFDOffset
Exif.GPSIFDOffset
Exif.TIFFNewSubfileType
Exif.TIFFSubfileType
Exif.TIFFImageWidth
Exif.TIFFImageHeight
Exif.TIFFBitsPerSample
Exif.TIFFCompression
Exif.TIFFPhotometricInterpretation
Exif.TIFFThreshholding
Exif.TIFFCellWidth
Exif.TIFFCellLength
Exif.TIFFFillOrder
Exif.TIFFImageDescription
Exif.TIFFMake
Exif.TIFFModel
Exif.TIFFStripOffsets
Exif.TIFFOrientation
Exif.TIFFSamplesPerPixel
Exif.TIFFRowsPerStrip
Exif.TIFFStripByteCounts
Exif.TIFFMinSampleValue
Exif.TIFFMaxSampleValue
Exif.TIFFXResolution
Exif.TIFFYResolution
Exif.TIFFPlanarConfiguration
Exif.TIFFGrayResponseUnit
Exif.TIFFGrayResponseCurve
Exif.TIFFResolutionUnit
Exif.TIFFSoftware
Exif.TIFFDateTime
Exif.TIFFArtist
Exif.TIFFHostComputer
Exif.TIFFColorMap
Exif.TIFFExtraSamples
Exif.TIFFJFIFOffset
Exif.TIFFJFIFLength
Exif.TIFFYCbCrCoefficients
Exif.TIFFYCbCrSubSampling
Exif.YCbCrPositioning
Exif.ReferenceBlackWhite
Exif.Copyright
Exif.ExifIFDOffset
Exif.GPSIFDOffset
Exif.TIFFNewSubfileType
Exif.TIFFSubfileType
Exif.TIFFImageWidth
Exif.TIFFImageHeight
Exif.TIFFBitsPerSample
Exif.TIFFCompression
Exif.TIFFPhotometricInterpretation
Exif.TIFFThreshholding
Exif.TIFFCellWidth
Exif.TIFFCellLength
Exif.TIFFFillOrder
Exif.TIFFImageDescription
Exif.TIFFMake
Exif.TIFFModel
Exif.TIFFStripOffsets
Exif.TIFFOrientation
Exif.TIFFSamplesPerPixel
Exif.TIFFRowsPerStrip
Exif.TIFFStripByteCounts
Exif.TIFFMinSampleValue
Exif.TIFFMaxSampleValue
Exif.TIFFXResolution
Exif.TIFFYResolution
Exif.TIFFPlanarConfiguration
Exif.TIFFGrayResponseUnit
Exif.TIFFGrayResponseCurve
Exif.TIFFResolutionUnit
Exif.TIFFSoftware
Exif.TIFFDateTime
Exif.TIFFArtist
Exif.TIFFHostComputer
Exif.TIFFColorMap
Exif.TIFFExtraSamples
Exif.TIFFJFIFOffset
Exif.TIFFJFIFLength
Exif.TIFFYCbCrCoefficients
Exif.TIFFYCbCrSubSampling
Exif.TIFFYCbCrPositioning
Exif.TIFFReferenceBlackWhite
Exif.TIFFCopyright
Exif.TIFFUserComment
Exif.ExposureTime
Exif.FNumber
Exif.ExposureProgram
Exif.SpectralSensitivity
Exif.ISOSpeedRatings
Exif.OECF
Exif.EXIFVersion
Exif.DatetimeOriginal
Exif.DatetimeDigitized
Exif.ComponentsConfiguration
Exif.CompressedBitsPerPixel
Exif.ShutterSpeedValue
Exif.ApertureValue
Exif.BrightnessValue
Exif.ExposureBiasValue
Exif.MaxApertureValue
Exif.SubjectDistance
Exif.MeteringMode
Exif.LightSource
Exif.Flash
Exif.FocalLength
Exif.MakerNote
Exif.UserComment
Exif.SubSecTime
Exif.SubSecTimeOriginal
Exif.SubSecTimeDigitized
Exif.FlashPixVersion
Exif.ColorSpace
Exif.PixelXDimension
Exif.PixelYDimension
Exif.RelatedSoundFile
Exif.InteropIFDOffset
Exif.FlashEnergy
Exif.SpatialFrequencyResponse
Exif.FocalPlaneXResolution
Exif.FocalPlaneYResolution
Exif.FocalPlaneResolutionUnit
Exif.SubjectLocation
Exif.ExposureIndex
Exif.SensingMethod
Exif.FileSource
Exif.SceneType
Exif.CFAPattern
Exif.InteroperabilityIndex
Exif.InteroperabilityVersion
Exif.RelatedImageFileFormat
Exif.RelatedImageWidth
Exif.RelatedImageLength
Exif.GPSVersionID
Exif.GPSLatitudeRef
Exif.GPSLatitude
Exif.GPSLongitudeRef
Exif.GPSLongitude
Exif.GPSAltitudeRef
Exif.GPSAltitude
Exif.GPSTimeStamp
Exif.GPSSatellites
Exif.GPSStatus
Exif.GPSMeasureMode
Exif.GPSDOP
Exif.GPSSpeedRef
Exif.GPSSpeed
Exif.GPSTrackRef
Exif.GPSTrack
Exif.GPSImgDirectionRef
Exif.GPSImgDirection
Exif.GPSMapDatum
Exif.GPSDestLatitudeRef
Exif.GPSDestLatitude
Exif.GPSDestLongitudeRef
Exif.GPSDestLongitude
Exif.GPSDestBearingRef
Exif.GPSDestBearing
Exif.GPSDestDistanceRef
Exif.GPSDestDistance

Iptc.SuplementalCategories
Iptc.Keywords
Iptc.Caption
Iptc.CaptionWriter
Iptc.Headline
Iptc.SpecialInstructions
Iptc.Category
Iptc.Byline
Iptc.BylineTitle
Iptc.Credit
Iptc.Source
Iptc.CopyrightNotice
Iptc.ObjectName
Iptc.City
Iptc.Province State
Iptc.CountryName
Iptc.OriginalTransmissionReference
Iptc.DateCreated
Iptc.CopyrightFlag

DokuWiki supports read only access to XMP metadata. Fieldnames are named Xmp.dc:title and alike.

See also

devel/templates/detail.php.txt · Last modified: 2014-03-24 16:04 by Klap-in