Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Mario Campos

Member
  • Content Count

    39
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Mario Campos

  1. I don't disagree with you. Squarespace 6 is trying to streamline each file upload type to be more natural, but in the end you need a guidebook just to find out where to upload everything. Squarespace 5 was folder based which was not as 'cool' but definitely more usable.

    I consider this method a hack until Squarespace 6 gets updated with a more useful file upload system. I think they can have various 'upload points' but it should all be easy. Folders work well, and we use them for a reason.

  2. I contacted Squarespace Support and they provided a helpful answer, which I expanded open by organizing my scripts onto a single page:

    1. Add a new page called 'JavaScript Files' [optional]
    2. Go to Page Settings and Disable the page [optional]
    3. Add a Text Block
    4. Add some text, preferably the name of your JavaScript file, like Sample JavaScript
    5. Select the ‘Sample JavaScript’ text and make it into a Link
    6. Click Files on the Link menu
    7. Click in the white space and select the file from your hard drive (or drag it onto the space from your hard drive) - I’ll use javascriptfile.js for this example
      Upload an asset through a text link, yeah, not the most elegant way to do it, Squarepace!
    8. Click in the Text Block again, and click on the Link Text – Squarespace automatically displays the URL it points to when you click on it, which should be /s/javascriptfile.js [whatever the name of the file your uploaded is]
    9. You can right click and ‘Copy Link Address’ to make sure you have the correct URL
    10. Go to your Code Injection (either the Page’s Code Injection or your site-wide Page Injection) and insert the code:
      
      
      <script src="/s/javascriptfile.js"></script>

      Using the name of the file you just uploaded instead of javascriptfile.js of course.

    You can keep adding JavaScript files, and it appears Squarespace automatically adds them to a javascriptfile.js directory.

    No need to link scripts via Dropbox or include the entire script in the Code Injection.

    You can use this to upload any file as well, but most other things have a place (CSS files and image get uploaded in the CSS Upload File area, etc.).

    Source: Creating a Text Link

×
×
  • Create New...