Search…

X3 Photo Gallery Support Forums

Search…
 
paolobax
Topic Author
Posts: 3
Joined: 30 Jun 2025, 11:29

Embed status and issue with folders

01 Jul 2025, 04:02

I've stumbled upon your excellent Files Gallery, and then discovered Embed to use in conjunction with it.
My need is to let administrators of a website upload and manage galleries of photos, but then make those galleries publicly available in a dedicated page of the website. Files+Embed are very promising, but I have a couple of issues.

1. When initially testing both, I couldn't make Embed to work due to a SyntaxError: Unexpected token '<' error. A forum search (here) revealed that Embed (v0.0.7) is not compatible with the current version of Files (v0.13.1). I could download an older version of Files and now everything works fine. Are there any plans to align the two products?

2. This issue can be a show stopper for me instead. When visiting the website page where the galleries are embedded, there's no cover image or name to distinguish the folders one from another, so that users can find the one/s they are interested in. Am I missing something, maybe an undocumented setting? If not, is there a chance you can this feature soon enough?

Thank you.
 
paolobax
Topic Author
Posts: 3
Joined: 30 Jun 2025, 11:29

Re: Embed status and issue with folders

01 Jul 2025, 04:31

I'm also thinking to an alternative setup. Instead of using Embed, I could use an iFrame to show the latest version of Files inside the public page of the website. In such case, is there a way to have an admin user (with credentials) with all the controls to manage the galleries, and a public access (no credentials required) without controls?
Thank you.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14269
Joined: 30 Sep 2006, 03:37

Re: Embed status and issue with folders

01 Jul 2025, 04:43

paolobax wrote:1. When initially testing both, I couldn't make Embed to work due to a SyntaxError: Unexpected token '<' error. A forum search (here) revealed that Embed (v0.0.7) is not compatible with the current version of Files (v0.13.1). I could download an older version of Files and now everything works fine. Are there any plans to align the two products?
Good questions. As of now, Embed works with the bundled version of `index.php`, see reference release files:
https://www.jsdelivr.com/package/npm/em ... ?tab=files

Also, because you might want to use latest version of Files Gallery with users, logins and file manager features, for now it's a good idea to keep Embed and it's "index.php" entirely separate from any Files Gallery you are planning to use. You can still use the same "root" dirs and it could still share the same cache (for example using symlink).

Yes, I do have plans to update Embed, but perhaps not immediately.
paolobax wrote:2. This issue can be a show stopper for me instead. When visiting the website page where the galleries are embedded, there's no cover image or name to distinguish the folders one from another, so that users can find the one/s they are interested in. Am I missing something, maybe an undocumented setting? If not, is there a chance you can this feature soon enough?
Embed was initially created to embed single galleries, as this seemed most useful and functional. Of course, it supports breadcrumbs and folder navigation, but it doesn't offer "preview images" yet. It is possible however to assign captions, which generally is the item name, or the folder name in your case.

If you go to the link below, and scroll to "STYLE CLASSES", and then you will see an "embed-captions-default" class that you can assign, that will show file/foldername as caption.
viewtopic.php?f=67&t=10180

The captions are actually there in the html in data attributes, and could easily be rendered visible with some custom CSS, if you want them displayed differently.

As for folder preview images and synching Embed to the latest version of Files Gallery (in terms of features that can be ported), yes it's definitely on the agenda, but no it's unlikely I can offer you this within a reasonable timeline. I probably need to rewrite it more or less from scratch. Keep in mind, Embed is a very low-level app, with probably less than 10 users.

For future requests regarding Embed, appreciate if you could post in the Files Gallery forums.
https://forum.files.gallery/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14269
Joined: 30 Sep 2006, 03:37

Re: Embed status and issue with folders

01 Jul 2025, 04:52

paolobax wrote: I'm also thinking to an alternative setup. Instead of using Embed, I could use an iFrame to show the latest version of Files inside the public page of the website.
It's possible to use Files Gallery in iframe, but of course you will lose a few of the features that makes Embed "Embed" in the first place. Files Gallery in iframe won't "flow" directly in your parent document like Embed, it will not inherit fonts or CSS, and you would need to adjust the iframe height manually or somehow programmatically (if required).
paolobax wrote: In such case, is there a way to have an admin user (with credentials) with all the controls to manage the galleries, and a public access (no credentials required) without controls?
Well, your iframe-embedded Files Gallery would/could work just like the standalone version. You can have a public version with optional login.
https://www.files.gallery/docs/users/#optional-login

For me personally, I would perhaps instead consider dropping a separate "index.php" into folder /admin/ (or whatever), point it to the same "root" and even storage dir. This way, the public version is strictly public with no option to login, and then you can use the admin version for admins, as I don't see any point of that being embedded by iframe. Unless you plan to assign other "admins" and want them them to always operate within the parent website using iframe ...
 
paolobax
Topic Author
Posts: 3
Joined: 30 Jun 2025, 11:29

Re: Embed status and issue with folders

01 Jul 2025, 09:44

Thank you for your fast and detailed replies. The caption is what I needed.