I host all my own videos for personal use on win7 systems using XAMPP with JWplayer inside Joomla2.5 for several years without issue. As I migrate to new J3 (same host environment) I want to change a basic configuration. Previously, I have had 1 site in the root drive (F:) that contained all the videos. I want to break it open so I have multiple sites in the same root (F:) folder which is easily accomplished.
My issue comes to this, I need to edit all my XML's to reflect the independent folder I will host the respective sites in and I would like to make the XML list with wildcards instead of a fixed location so that I won't have to repeat this editing for each file should I change a folder later on - example:
A sample of my XML player file:
XML FEED
The Wild Wild West
S04E01 - The Night of the Big Blackmail
/images/WildWildWestLogo4.jpg
/images/media-WildWildWest-Season04/S04E01.mp4
The Wild Wild West
S04E02 - The Night of the Doomsday Formula
/images/WildWildWestLogo4.jpg
/images/media-WildWildWest-Season04/S04E02.mp4
Whereas: "/images/media-WildWildWest-Season04/S04E01.mp4" was previously located at F:/hotdocs/images/media-WildWildWest-Season04/S04E01.mp4
The F:/htdocs was unneeded in the XML file as it assumed a root directory and has worked flawlessly since I created it.
What I want to do is move this whole site to (example): F:/htdocs/CLASSICS/images/media-WildWildWest-Season04/S04E01.mp4
What I need to discover, is a wildcard solution to allow the "CLASSICS" folder to not be actually labelled as "CLASSICS" but find a wildcard that will substitute any directory name.
OLD: /images/media-WildWildWest-Season04/S04E01.mp4 (worked perfectly with site in root folder)
NEW: /CLASSICS/images/media-WildWildWest-Season04/S04E01.mp4 (will only work if I actually add "CLASSICS" to the XML file).
WANT (example): /%%/images/media-WildWildWest-Season04/S04E01.mp4
So that no matter what folder I put the site in, it would work.
I have been as clear as I can be so I hope someone can see what I am looking for and hopefully have a workaround or know what I can do. I have a few hundred XML files that I need to change and I only want to do it once so that I won't have to replicate this issue on future upgrades.
Deeply appreciated,
Thanks.
↧