CommonSpot Login and Edit Bookmarklets

Have you ever been browsing your site and noticed something needed to be changed? Wouldn’t it be nice if you could start editing that page at the click of a button (or two)? The solution is here in the form of two bookmarklets.

Here’s how it works

  1. Drag these two links to your bookmark toolbar:
    1. LoginCommonSpot
    2. EditThisPage
  2. Navigate to a page you want to edit.
  3. Press the LoginCommonSpot bookmark on your toolbar. It will open a new window with a login to CommonSpot. With Firefox, after you login, you’re get a scary security warning, it’s okay, click “Continue”. It will send you back to the page you started at.
  4. Now you’re back in the window you want to edit. Click the EditThisPage bookmark on your toolbar.
  5. Tada! That’s it. Now you can make that edit to the page.

Code Geekery

The person to thank for writing these bookmarklets is freedom_razor who answered my call for help and posted this javascript code in this thread:

javascript:void(window.open((location.href.replace(/w+://[w{3}.]*/,'https://authoring.')).replace(/(/[^/]+$)|/$/,'/login.cfm'),''),'0');

javascript:location=(location.href.replace(/w+://[w{3}.]*/,'https://authoring.')).replace(/#.*/,'');

One Last Trick

Here’s a last bookmarklet that will take you from the authoring page to the public page: PublicVersion

I know there’s the “read” view from the authoring panel, but sometimes you need to check the actual public page to make sure things are really working (especially when a customcf script is involved that might not have been synced over to the read servers yet…).

P.S.-if you prefer the login bookmarklet to open in the same window, here’s a version for you: LoginCommonSpot


About this entry