Add hero images to your articles.
Attach the JavaScript document to your CoreMedia article under Miscellaneous > Associated JavaScripts
CoreMedia ID: 105229972
This will load the script into the page.
To embed a hero image:
- Upload your hero image to CoreMedia
- Check the "use original image" box
- Add it to the Related Media section of your article
- Include the hash with the width/height/CMID
#heroimageWIDTH210pxHEIGHT210pxCMID12345
[embed illustration]
#headernomedia
Your header text goes here
#endheader
You must include the height and width of the image. This specifies the max size of the image, and ensures it scales down in the right ratio for mobile.
You must add the image to the related media section otherwise it will not load.
Use regular "use original image" CM images, but embed them in the article so they syndicate:
- Upload your hero image to CoreMedia
- Check the "use original image" box
- Embed Full the image where you want the image to appear
- Prefix it with the #heroimage hash, as shown below:
#heroimageWIDTH210pxHEIGHT210px
[embed illustration]
Transparent video must be uploaded to the FTP server manually.
There must be two videos:
- mp4 - for Safari
- webm - for everything else
To get this working:
- Rename your videos to have the same name, all lowercase & alphanumeric. e.g. myvideo.webm & myvideo.mp4
- Upload your videos to
http://abc.net.au/res/sites/news-projects/[your-folder] - Include the following hash:
#herovidtransparentROOTyourROOTfolderVIDmyvideoWIDTH210pxHEIGHT210px
Specify your folder as an array, in this case ROOTyourROOTfolder resolves to your-folder.
You must include the height and width of the video. This specifies the max size of the video, and ensures it scales down in the right ratio for mobile.
Transparent video must be uploaded to the FTP server manually.
To get this working:
- Rename your svg to be all lowercase & alphanumeric. e.g. myanimation.svg
- Upload your svg to
http://abc.net.au/res/sites/news-projects/[your-folder] - Include the following hash:
#herosvgROOTyourROOTfolderSVGmysvgWIDTH210pxHEIGHT210px
Specify your folder as an array, in this case ROOTyourROOTfolder resolves to your-folder.
You must include the height and width of the svg. This specifies the max size of the video, and ensures it scales down in the right ratio for mobile.