Search…

X3 Photo Gallery Support Forums

Search…
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Videos MP4 duplicated

02 Jan 2017, 03:36

Hi Karl
I need your help..

I have created a page called Video. In the gallery,I've put 2 videos in MP4 format.
In the content tab, I have put the code:

**title 1**
<video width=100% controls>
<source src="{{path}}trailer1.mp4" type="video/mp4">
</video>
**title2**
<video width=100% controls>
<source src="{{path}}tarantellajazz.mp4" type="video/mp4">
</video>

The 2 embedded videos are now in the page..but duplicated. Why?
Any suggestion?

--> www.vbf2009.com
Thx
Vincenzo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Videos MP4 duplicated

02 Jan 2017, 04:40

vboa68 wrote:The 2 embedded videos are now in the page..but duplicated. Why?
Any suggestion?
There is a simple explanation for this: When you upload videos, they will display in the page's gallery alongside any images. Therefore, you have two options:
  • Don't add the videos to your content, as they will already display in the page's gallery.
  • If you want to add the videos to "content" for better control, you should HIDE them from the page gallery module. To achieve this, rename the video files with underscore, for example "__myvideo.mp4". Optionally, you can HIDE the entire gallery module from page Settings -> Gallery -> Hide Gallery Module.
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Re: Videos MP4 duplicated

02 Jan 2017, 05:22

Hi Karl

thx for your prompt answer.
I've tried the first option, but if I rename the file with leading __, the webpage shows me the error "file not found".
Therefore I've choosen the second option: hiding the gallery in the settings... it worked!!

thx a lot
vincenzo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Videos MP4 duplicated

02 Jan 2017, 06:18

vboa68 wrote:I've tried the first option, but if I rename the file with leading __, the webpage shows me the error "file not found".
You would also need to change the names in your video embed code:
Code
<source src="{{path}}__trailer1.mp4" type="video/mp4">
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Re: Videos MP4 duplicated

02 Jan 2017, 07:40

RIGHT!
I forgot ...

anyhow.. now it works!
thx
bye
vincenzo