Search…

X3 Photo Gallery Support Forums

Search…
 
Reflexeye
Topic Author
Posts: 3
Joined: 02 Mar 2017, 05:55

Video gallery

04 Mar 2017, 14:12

I've read through forums but cannot ascertain if the following has been incorporated into current release:

I am trying to create a gallery of thumbnails (frame grabs from videos), which when clicked, open the corresponding video file in a popup.

At the moment, I have thumbs in a directory (http://reflexeye.com/Galleries/Moving-Images/) and video files in a sub-dir (http://reflexeye.com/Galleries/Moving-Images/video).

I can't get linking from thumbnail to video file to work.
Regards
Jem
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Video gallery

04 Mar 2017, 22:33

Reflexeye wrote:I can't get linking from thumbnail to video file to work.
Your first link points to this:
http://reflexeye.com/Galleries/Moving-I ... /00001.mp4

That file does not exist.

I think you may need to understand that URL paths /Galleries/Moving-Images/ are NOT physical folder paths, but "nice url's". The real physical path would be "/content/2.Galleries/Moving-Images/". There are variables available for image links:
panel wrote:Dynamic Values
You can use the following variables in your links, which are replaced dynamically:

{file_name_ext} is replaced by the file name.
{file_name} is replaced by the file name without extension.
{path} is replaced by the file path of current folder.
{image_path} is replaced by the path to the image.
You would probably in your link use something like this:
Code
{path}video/00001.mp4
The above may require you to update to a newer version of X3 though. I see you are using X3 0.18. X3 0.22 was released a week ago.

If you didn't use the filename tn_ in front of the image name, you could additionally set up dynamic links for ALL videos in the same folder, without having to add them per image.