MG 2.1 Where can I add more Exif fields?

snoopy5

Well-known member
In MG 1.1.17 there was the option to add more EXIF fields, if needed.

XF ACP/Applications/Gallery Options/Image Options

193496



Where do I find this in MG 2.1rc ?
 
In XFMG 2.x you can actually add additional exif data using simple template edits, and we've tried to simplify the EXIF parameter types, so it's transparent of the FILE/EXIF/IFD0/EXIF categories.

The template to modify is xfmg_media_view_macros and there is a macro in there named exif_sidebar.

We have a special exif object which is accessed using:
Code:
{$mediaItem.exif.ExifFieldName}

With that in mind, to add ShutterSpeedValue (which I think you've added yourself to XFMG 1.x) you would add:

HTML:
<xf:if is="$mediaItem.exif.ShutterSpeedValue">
   <dl class="pairs pairs--justified">
      <dt>Shutter speed value</dt>
      <dd>
         {$mediaItem.exif.ShutterSpeedValue}
      </dd>
   </dl>
</xf:if>

Below the existing:
HTML:
<xf:if is="$mediaItem.exif.dimensions">
   <dl class="pairs pairs--justified">
      <dt>{{ phrase('xfmg_exif.dimensions') }}</dt>
      <dd>
         {$mediaItem.exif.dimensions}
      </dd>
   </dl>
</xf:if>

As before, custom development may be required in terms of formatting some of these values. That can be done by extending the XFMG\Exif\Formatter class and most likely the offsetGet method which is where we perform some calculations/formatting for some of the default values we show.

Of course if you feel there is some specific data missing that is very common and useful and worth displaying by default, open a suggestion and we can consider adding that if it is worthwhile.
 
In XFMG 2.x you can actually add additional exif data using simple template edits,

If I make those template edits, will they be overwritten with the next software update?

Of course if you feel there is some specific data missing that is very common and useful and worth displaying by default, open a suggestion and we can consider adding that if it is worthwhile.

I will do that ;)
 
Back
Top Bottom