When I import them one at a time, I am given a choice between importing the file or importing it as an alias.
I always choose importing as an alias as I want to be able to update my Hot Potatoes files without having to reimport them or to recreate the activity.
However, I sometimes have a lot of tasks that also have related sound files. I am given the choice of importing all files in a folder and to add them to a taskchain. However, I am not asked if I wish to create an alias for each one.
Is there a setting for this or a way of doing it?
Put the related files together with the HP files in the repository.
When you create the HotPot or TaskChain activity, just link to the HP files. Don't worry about related files at this point.
Later, when you and the students view the HotPot/TaskChain activity, the browser will request the related files from the HotPot/TaskChain module. When either of these modules detects that a related file is required but not already available, it will search the repository where the HP file is, find the related file, and create a link to it from the "Source file" area of the HotPot/TaskChain module.
This all happens automatically. All you need to do is add the HP files as link in the "Source file" area. After viewing the activity a few times, if you revisit the settings page, you will notice that all the related files have been added as links to files in the repository. Yay!
Some really good work has been happening here. Correct me if there is something missing in my understanding here, but it means that importing a file into a taskchain as an alias (in other words, a related file) is no longer needed.
My main concern here is for courses with taskchains that are replicated based for use by other teachers. Are the taskchains going to work in those copies of course with the files not having been imported as an alias?
And do I need to keep updating taskchain for this to work?
Tx for all your help.
you're right when you say that it is not necessary to set up related files (a.k.a. secondary files) as aliases if you have set up the source file of each task within a TaskChain as an alias.
Regarding TaskChains that are "replacated" I think it depends how you replicate the TaskChains. If you replicate them with backup and restore, then I think all the aliases get converted to hard copies In other words, the aliases/links are gone in the restored TaskChains and changes to files in the central repository will no longer be reflected in non-alias versions of the file used in various TaskChains.
My understanding is that Moodle backup will at some point be modified to maintain links, but I don't know if that is yet possible. Does anyone reading this know about restoring of linked files?
the following document suggests that resotiring of Moodle file aliases was introduced in Moodle 2.5
As Gordon rightly said "if that is true".
As can be seen here it was already an issue un 2012 and I would be very interested in your experience in this reagrd!
Please keep us posted on your results
So I have three taskchains in a course that I am experimenting with.
All of the files had been imported using aliases. (I will try another experiment using just imported files at Gordon suggests when I have one ready)
I backed up the course and was given this message at the end of the backup.
"File references to external contents included in backup package, they won't work on other sites."
All of my HP and sound files are on the server in a directory just below htdocs.
When I restored the course as a new course, the taskchains worked great and all of the sound files worked fine.
All seems good!
One little side note is that [mysoundfile.mp3] coding in my HP files stopped working for me yesterday. Not sure why. So I went with:
<audio controls="controls" preload="metadata"><br/><br/>
<source src="mymp3file.mp3" type="audio/mpeg"><br/><br/>No HTML5 audio playback capabilities. No Flash fallback either!</audio>
It worked fine. Firefox seems to be playing it too.