Skip to main content
Participant
March 6, 2021
Question

CF Directory video file name as an identifier in a '#URL.id#'

  • March 6, 2021
  • 0 replies
  • 151 views

Is there a way to grab the actual name of a video file located inside of a folder and make it a  variable to be identified within a hyperlink to bring up a pop-up video Modal. I'm Able to do that via a '#URL.id#' with The link to the video pointing to YouTube for Vimeo. I am able to list the names of the files in the video folder via the cfdirectory tag. I am also able to display the videos via cfloop from the video file name outputted from the cfdirectory. What I am trying to achieve is to click on the Video output gallery to bring up a pop up on another page when any video images is clicked on.

 

This is the pop-up page that shows my movies based on a link to YouTube. The link to YouTube is hard coded in my database.

 

<div>

 

<div class="video-block mbr-figure"><iframe class="mbr-embedded-video" src="#video2.evevideofullurl#?rel=0&amp;amp;showinfo=0&amp;autoplay=0&amp;loop=0" width="1280" height="720" frameborder="0" allowfullscreen></iframe></div>

</div>

 

</div>

 

I am trying to achieve the same behavior but with the name of the video file, that is now physically located in my folder as the identifier in the hyperlink

 
thanks for any tips you could provide

    This topic has been closed for replies.