Search…

X3 Photo Gallery Support Forums

Search…
 
traxnamibia
Experienced
Topic Author
Posts: 29
Joined: 17 May 2021, 08:16

Re: Attribute: data-embed-popup-caption-template

15 Nov 2021, 08:04

Hi Karl,

I have replaced the files app and the files config file (that's ALL), but I am now getting an 'Invalid Directory' error.

Please have a look at https://selfdrive.africa/nambots/lodging/aiaiba/_snippets/gallery1-embed.html and let me know what's up?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13083
Joined: 30 Sep 2006, 03:37

Re: Attribute: data-embed-popup-caption-template

15 Nov 2021, 08:52

traxnamibia wrote:I have replaced the files app and the files config file (that's ALL), but I am now getting an 'Invalid Directory' error.
I am not sure how/if/why it was working before, but below is the link to your files app, and it's empty:
https://selfdrive.africa/nambots/lodgin ... _files.php

So in Embed, you have data-embed-path="images/presentation", which means it's trying to load that path relative the Files app, but that folder does not exist. It would be here
https://selfdrive.africa/nambots/lodgin ... esentation

Or here, when Files app tries to load it:
https://selfdrive.africa/nambots/lodgin ... esentation

In either case, that path does not exist, and based on your settings, this is expected behavior. What is the actual path of "images/presentation" that you are trying to display? Files app must be able to access the folders you want to display, either by locating Files app in a parent location of the dirs you want to display, or by assiging the Files app ROOT config option to point to a specific parent dir so that it can access relative sub-directories.
 
traxnamibia
Experienced
Topic Author
Posts: 29
Joined: 17 May 2021, 08:16

Re: Attribute: data-embed-popup-caption-template

15 Nov 2021, 12:21

In either case, that path does not exist
I really don't get it - those locations exist:

eg:
https://selfdrive.africa/nambots/lodgin ... Lodge.webp
Would it help if I gave you FTP access?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13083
Joined: 30 Sep 2006, 03:37

Re: Attribute: data-embed-popup-caption-template

15 Nov 2021, 22:24

traxnamibia wrote:I really don't get it - those locations exist:
I figured it out ... An unfortunate circumstance. Since latest release, Files app automatically excludes paths that start with /_files*. Why? Because we need to exclude stuff created by Files app, for instance the new cached download/ZIP files that are named path/_files.zip. It's also useful if you want to add files or folders that you want to exclude from being viewed.

Unfortunately, your main parent dir of the app was called /_files/ and Files app therefore excluded all paths within from being read. I have temporarily renamed the folder from /_files/ to /zfiles/, you can check now that it works? PS! You would also need to amend attributes in the Embed app.

Sorry for this confusion. There could be room for improvement, as Files app should perhaps only exclude paths if /_files* is a child of the actual Files app root. However, it was perhaps a bit unfortunate that you chose the parent folder name "/_files/" which is what files app uses for the excluded storage dir /_files/_files/? Anyway, not your fault!
 
traxnamibia
Experienced
Topic Author
Posts: 29
Joined: 17 May 2021, 08:16

Re: Attribute: data-embed-popup-caption-template

16 Nov 2021, 01:12

:punch:
as simple as that!

Thanks!