MG 2.2 Expand metadata blocks in media view overlay

PapaTango

Member
We have this:

collapsed image meta.png

The world would be a much better place if the default was for these meta boxes to be open instead of collapsed. This is the lightbox overlay, not a regular image display page. Those are properly shown.

Any thoughts on how to make it happen? As always, I appreciate the help.
 
In xfmg_media_lightbox_sidebar template find (x4) around line 253 and following
HTML:
{{ is_toggled('xfmg_lightbox_media_information') ? 'is-active' : '' }}

replace by
HTML:
is-active
 
I am not sure I understand. I have chopped and pasted a wide variety of permutations. It usually either shows Oops! errors, or does nothing. What is the line 253 string syntax in whole with this fix applied? I am not a coder so I must be missing something.

This has been done on all four instances of toggle box display:

HTML:
<span class="collapseTrigger collapseTrigger--block {{ is_active('xfmg_lightbox_media_information') ? 'is-active' : '' }}" data-xf-click="toggle" data-target="< :up:next" data-xf-init="toggle-storage" data-storage-key="xfmg_lightbox_media_information" data-storage-type="cookie">
 
Last edited:
Result must be
HTML:
<span class="collapseTrigger collapseTrigger--block is_active" data-xf-click="toggle" data-target="< :up:next" data-xf-init="toggle-storage" data-storage-key="xfmg_lightbox_media_information" data-storage-type="cookie">
 
Top Bottom