In This Article:

    Overview: Replacing files needed by templates

    In This Article:

      Background

      Most of the templates in Salsa are extracted by the Template Extractor. The template extractor is very good at finding files to be downloaded. Unfortunately, some of these files have non-secure content (like font files) and need to be fixed so that they load the content via HTTPS:

      Files stored by the extractor

      The template extractor find files that a template needs and stores them on Salsa.  The area where the images is stored is essentially read-only.  (Files can be added to that directory via the image repository viewer. Files cannot be removed, replaced or renamed -- thus "essentially".)

      You can identify files that are in the read-only repository because they will have a number following "images" in their URL. 

      https://wfc2.wiredforchange.com/o/8564/images/13566/image/stars.png

      In general, the number is the template_KEY for the template where the file is used.

      The file repository used by the file extractor is read-only.  Changing a file is not a straightforward task.  We'll need to copy the file from a read-only directory to the "Images and Files" directory.  Then the template needs to be changed to use the new URL.

      Here are some steps that you can use:

      1. Determine the file that needs to be replaced.
      2. Download the file to your disk.

      1. If the file is a text file, then edit the file using a text-only editor.  Do not use Microsoft Word.
      2. Upload the file to Salsa via Images and Files.  Click here to learn more about uploading files to the "Images and Files" part of Salsa.
      3. Uploading the file creates a new URL.  Copy the URL.
      4. Edit the template that contains the URL of the original file.  Click here if you need help getting started.
      5. Find the original URL in the template.
      6. Replace the original URL with the one copied when the new file was uploaded.
      7. Save the template.
      8. Test!

      Files uploaded into "Images and Files"

      When files are uploaded into the "Images and Files" part of Salsa, they are placed into an area where files can be both saved and deleted. That makes files a whole lot easier to replace because the template doesn't need to be modified.

      You can tell that a URL is  the "images and Files" because there is not a number following "images" in the file's URL:

      https://wfc2.wiredforchange.com/o/8564/images/2015-04-07_1140.png

      Here are some steps that you can use to replace a file in the "Images and Files" section of Salsa Classic:

      1. Determine the file that needs to be replaced.
      2. Download the file to your disk from "Images and Files".  Click here to learn more about "Images and Files" of Salsa.

      1. If the file is a text file, then it can be edited the file using a text-only editor. Do not use Microsoft Word.
      2. Delete the file from "Images and Files".

      1. Upload the file to Salsa via Images and Files.  Click here to learn more about uploading files to the "Images and Files" part of Salsa.

      Your template will use the new version of the file as soon as it's available in Salsa's cache (usually less than 5 minutes).

       

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request

      Comments

      0 comments

      Please sign in to leave a comment.