Hi Folks
Wondering if anyone can put me on the right path here?
I'm struggling to establish an efficient, functional workflow in setting up an mp3 library for a choir website.
I have 600 mp3's that need to be available both in the browser and downloadable.
This equates to 150 songs, each with four mp3 files representing the four voice types; 1st tenor, 2nd tenor, baritone, bass.
My thinking thus far has me using an aggregate Migx TV (named 'mp3_migx') with four associated tv's (the four voice types).
The Tpl ('mp3Tpl') is simply
<li class="song">
<h5>song title</h5>
<div class="button-group voice-type">
<a href="[[+mp3_download_1st_tenor]]" class="button">1st Tenor</a>
<a href="[[+mp3_download_2nd_tenor]]" class="button">2nd Tenor</a>
<a href="[[+mp3_download_baritone]]" class="button">Baritone</a>
<a href="[[+mp3_download_bass]]" class="button">Bass</a>
</div>
</li>
and the template call
<ul>
[[getImageList?
&tvname=`mp3_migx`
&tpl=`mp3Tpl`
]]
</ul>
I have added a New Content Type of 'mp3'.
I have set up a dedicated Media Source with 'basePath' and 'baseUrl' pointing to the mp3 folder...
and 'allowedFileTypes' set to 'mp3' only.
I have set each tv to that same source.
The idea is not only to be able to build the listings dynamically, but also for the files to then be available inline/downloadable.
I thought the Input Option on the four associated tv's should be 'File' but unfortunately this fails to capture the path to the file.
I've tried dozens of permutations and read widely.
But before I go too far down the wrong path,
does anyone have any experience of this kind of project?
Any nuggets of gold would be appreciated...
even gold dust...
Thanks
Chris
My setup:
MODX latest (2.5.7)
MAMP (latest (3.0.7.3))
PHP (5.5.26)
MySQL (5.5.38)
Chrome: Std and Canary (latest versions)
MacOS Sierra 10.12.5