iFrame Data Loopers

Use the Data Loop Builder tool to create HTML iframe components that can be inserted into the print.php document file inside LC template based lessons.

Each "Data Looper" should be contained within its own folder in the /media/loops/ folder; and should have the following tree structure:

  • ~loop_folder_name

    • index.mdx

    • src

    • image_filename_01.jpg

    • image_filename_02.jpg

    • image_filename_03.jpg

Data Loop Builder (C-Shell Script)

This tool lets you create iframe data loopers that can be used inside of Latest Core. Requires jQuery, Bootstrap, and Looper Javascript and CSS.

*Mac OSX Required

With both AV: and W: web drives mounted on your machine, follow these steps to run the script.

Note: Folders with images should already be copied to W:/../YOUR_DIRECTORY/media/loops/. Before running this script.

  • Open up a new Command Terminal window.

  • SSH into the mum server:

ssh username@mum.comet.ucar.edu
  • Enter your password

  • Change working directories:

cd /av/latest_core/LoopBuilder/
  • Run the script, and set destination path and media type extension:

csh loopBuilder.csh /av/YOUR_DIRECTORY/media/loops/ jpg
  • Check the loops in AV: to make sure they converted successfully.

  • Copy the finilized loops to the corresponding directory in W:

  • Once the script has finished successfully, terminate the script and close your terminal window:

exit

Last updated