At present, we have two (well, actually more, but let's say two for simplicity's sake) Moodle environments - the live environment the students are using and a development environment where we experiment, test, and develop courses. Courses developed or built in the development environment are pushed up to the live environment when they're ready to go live.
Now, when adding content to the course page (/course/view.php) I want to add, say, a summary with the HTML editor. If I want to add an image, I select an image through the file picker and it gets inserted. However, the path to the image contains the course id number in it. (... /file.php/courseid/ ...)
Do we see where this is going yet?
When we want to transfer the course up the live environment, it is backed up from the development environment and restored into the live environment as a new course. All the files, including the image in question, are carried across but the course now has a new id number. All the core Moodle functionality works fine, but the image I linked to now no longer exists. I have to manually edit the HTML entry and select the image again to get it assigned the new id number.
So, have other people experienced and had issues with this explicit id number referencing? How have you solved it? Is it more common to just perform course development on the live server, thus negating the need for the upload between environments? This goes against our current development policy so it would be nice to avoid this if possible.
To add a little extra spice into the mix, I recently built a custom FLV player for our Moodle. Using the parameters that are able to be passed in with a new link I passed in both the server path and the course id number. Then, using PHP and ActionScript I was able to create an FLV player page that can play any FLVs from the courses. As the course id number is passed in, it is dynamic and any clashing between the environments is non-existant.
I guess a perfect solution would be to have that id number generated into the image path dynamic so it can be flexible enough to be uploaded to a different course. Should I raise this issue in the tracker?
Thanks for any thoughts.
EDIT - We're running 1.9.3 in both environments. Thanks.