Drupal has recently updated its file structure at the beginning of 2022. This means all files uploaded to Drupal will now have a different URL than before and using the wrong URL structure will result in the file not displaying correctly and a page saying what you are looking for is not found.
The new file structure is as follows:
https://kidspirit.oregonstate.edu/sites/kidspirit.oregonstate.edu/files/YYYY-MM/FILE_NAME
Note that you are now required to include the year and month of when the file is uploaded to the URL.
The file name will be the exact string that Drupal assigns to your file after upload, this should be a string with all lower case letters and have no space. Include the file extension such as .pdf or .png to the file name.
Note that it might take a few moments for Drupal to actually process the URL and the file may not actually show up immediately. Double-check that you have entered the correct URL and wait for a few moments.
KidSpirit Brochure code is available on the GitHub repo at https://github.com/OSUKidSpirit/Programs-Section
Changes pushed to GitHub will be notified on Slack at #04code public channel
The KidSpirit Brochure is located at the following location:
Updating Code
Changing the brochure, unless the URL remains the same, require changing the code for ALL these pages.
To change the brochure, replace the URL located in src="" with the new URL of the file like so:
<iframe class="anthonian-brochure" src="{{ URL }}" width="100%" height="500px"></iframe>
The JavaScript should be placed at the very bottom of the page. Use a new section if needed.
Upload the brochure to the website
Paste the link in the field that says "Enter Brochure Link Here"
Click the "Generate" button
Click the "Copy Code To Clipboard" button
Go to the page you want the brochure to show
Create a section (paragraph)
Set the type to JavaScript
Paste the code to the section (you already copied it when you click the button)
Publish the page and you are good to go.