Your sites Log in Sign up Menu

A quick way to find the source file for a post on my site?

Is there an easy way that when you I visit a page on my Blot site - I can quickly find and open the original file in my folder, via say Dropbox?


8 months ago, 1 replies   dropbox   Improve this question

Here's a bookmarklet which will redirect you from a post or page on your blot site to the file on Dropbox:

javascript:let pathToBlogFolder = localStorage.getItem("pathToBlogFolder"); if (!pathToBlogFolder) pathToBlogFolder = prompt("What is the path to this blog folder in Dropbox?"); localStorage.setItem("pathToBlogFolder", pathToBlogFolder); fetch(window.location + "?source=true").then(response => window.location = `https://www.dropbox.com/home${pathToBlogFolder}${(new URL(response.url)).pathname}`);

To get it to work:

  1. Make sure you are signed into Dropbox.com with the same account you use with Blot
  2. Create a new bookmark, its title can be anything you like (perhaps 'View source') but paste the line above in its entirety into the 'URL' field. This is known as a bookmarklet. I recommend moving this new bookmark onto your browser's bookmark bar for easy access.
  3. Navigate to a post or page on your site then press the bookmarklet. The first time you press the bookmarklet will prompt you for the path within Dropbox to your blog's folder. You can find this on your blog's dashboard but it'll probably be something like:
/Apps/Blot
Answered 8 months ago · Improve this answer