MG 2.3 Some questions/issues with XFMG

Levina

Active member
On my forum all attached images on the board are mirrored in the gallery and I run into some problems that I can't solve with the core software.

#1 File extensions (jpeg, png, webp. etc)
I would like to remove all extensions from attached images in the gallery. At the moment this needs to be done manually, which is too much work. Is there a way to have this done automatically, upon upload, so you get "Grey heron" instead of "Grey heron.jpg".

#2 When a file name is changed in the gallery, the file name on the board isn't changed but keeps its original name. I'm not sure but I think it might cause problems with SEO?

#3 Changing file names
We often have sequences of similar shots, e.g. when people post birds in action, or in the sports forum. It would be nice if titles could be changed in batches.
It would be even better if people could be given an option to fill in a proper (descriptive) name for their images upon uploading.

#4 Tagging
It would be nice if tagging could be done in batches too so I don't have to add the same tags a zillion times for each individual image.

I would appreciate any and all suggestions. Thanks.
 
#2 When a file name is changed in the gallery, the file name on the board isn't changed but keeps its original name. I'm not sure but I think it might cause problems with SEO?
Just curious:
How do you change the filename of an image in XFMG?
As far as I know there is no option to do that (without an Add-on)

It would be even better if people could be given an option to fill in a proper (descriptive) name for their images upon uploading.
Hmm ... isn't that already happening?

After uploading media (eg. a single or multiple images) in XFMG you get a form where you can enter / edit title, caption, description and tags for each image.
But the vast majority of users probably doesn't care and just click Save without doing anything else so the images are saved with their filename as title.
 
Just curious:
Hmm, how do you change the filename of an image in XFMG?
As far as I know there is no option to do that (without an Add-on)
You can edit the name. But the original name is preserved in the metadata.

Hmm ... isn't that already happening?

After uploading media (eg. a single or multiple images) in XFMG you get a form where you can enter / edit title, description and tags for each image.
But the vast majority of users probably doesn't care and just click Save without doing anything else so the images are saved with their filename as title.
I am talking about a mirrored gallery. So there's no uploading directly into the gallery.
 
I would like to remove all extensions from attached images in the gallery. At the moment this needs to be done manually, which is too much work. Is there a way to have this done automatically, upon upload, so you get "Grey heron" instead of "Grey heron.jpg".
I'd test this on a test style/board first, and I'm not sure if this is the proper way of doing things, so someone may tell me off, but if you search your media gallery templates for instances of

Code:
{$mediaItem.title}

and replace it with

Code:
{$mediaItem.title|replace('.jpg', '')|replace('.png', '')|replace('.webp', '')}

Or whatever extensions you want to remove.

This worked on my limited testing
 
I'd test this on a test style/board first, and I'm not sure if this is the proper way of doing things, so someone may tell me off, but if you search your media gallery templates for instances of

Code:
{$mediaItem.title}

and replace it with

Code:
{$mediaItem.title|replace('.jpg', '')|replace('.png', '')|replace('.webp', '')}

Or whatever extensions you want to remove.

This worked on my limited testing
Gemma! Hi, thank you again! I'm going to open a demo and try it out. 🙏
 
I have a little update on the above.

I have replaced {$mediaItem.title} in three different templates now and they are gone in grid view, below the image and in the lightbox sidebar.

But not from the image itself and not from the URL:
Scherm­afbeelding 2025-05-04 om 22.24.00.webp
Scherm­afbeelding 2025-05-04 om 22.24.22.webp

What's interesting is that when I try to edit the title of an image where the extension seems to be gone, it still shows the extension in the edit window, so it's just in hiding as it were.
Scherm­afbeelding 2025-05-04 om 22.23.36.webp

I remove the extension there manually and it's gone everywhere.

Scherm­afbeelding 2025-05-04 om 22.24.53.webp

Scherm­afbeelding 2025-05-04 om 22.25.03.webp
 
Back
Top Bottom