StudyPortals image repo
Any image that you commit and push to this repository will be available in 5 minutes or so on Imgix.
Image location in this project:
Academic/Shivprasad.jpg
URL:
//monet-prtl-co.imgix.net/Academic/Shivprasad.jpg
So, instead of linking to images the old fashioned way:
// Show EADTU image link.
$url = [];
$url[] = Site::Singleton()->base_url;
$url[] = $this->module_path;
$url[] = 'Images/EADTU.png';
$eadtu_logo_url = implode('', $url);
$Template->eadtu_logo_url = $eadtu_logo_url;
We can use the image in the template directly now.
For the example above: the image is located in:
DistanceLearningPortal/Modules/StaticContent/PartnerEADTU/Images/EADTU.png
so we can commit it to the same location in Monet.
To avoid duplicate file names, please use the directory names where the image was originally located in! This makes it much easier to retire obsolete images and modules.
This is not the case currently, so we’ll actively have to work on moving things to their correct places.
Images linked to in CSS (not that there should be many left) should also be put in this repository.