MG 2.0 Media Gallery Metadata Block

Heffalump

Active member
Hello,

wondering, how to disable the metadata-block in media view. There are much privat informations and not anyone should see them. Searched in permission settings and config settings but nothing found to disable this block.
 

Attachments

  • media_metadata.webp
    media_metadata.webp
    69 KB · Views: 53
Hallelujah! I swear, sometimes the simplest things take so much time to find... This is what I wanted, thanks for this.

Long live the <xf:comment> tag!

Oh, wait... now metadata shows on some but not others. Do I need to rebuild something?

Arrrgh... can't get rid of it. I see it in some views, but not others. Where else do I look? Can I do something with the xfmg_media_view_macros template?
 
Last edited:
Did you deactivate comments, globally or per usergroup, on media ?
If so in xfmg_media_view template you have to comment/remove this part of code (around line 339) :
HTML:
<xf:sidebar key="exifSidebar">
    <xf:macro template="xfmg_media_view_macros" name="exif_sidebar" arg-mediaItem="{$mediaItem}" />
</xf:sidebar>
 
I wish I were sophisticated enough to be able to understand the question so I could answer it! Here is what I do not want to see:

metadata.jpg
It displays to the right of the image. I see absolutely no reason for users to be able to see this, this is just supposed to be a gallery of photos, like an art museum. I don't know why anyone would care about this information in this context, and I don't want it displayed.

This should be a simple configuration item, but it isn't. So if someone can tell me where to look and what to do (I'll look at the above reply and report back soon) to bounce this, that would be appreciated. And please explain to me like I'm in the first grade and don't know all my letters, yet.
 
Top Bottom