SSbits - Home page
Site by Carbon Crayon
Submit a Post >

Snippets - Little bits of code to make you happy

SilverStripe developer bookmarklets

Bookmarklets image

Here are some handy dynamic bookmarklets for your browser for one click access to things like rebuilding the database, flushing the cache and accessing the CMS!

Here are some simple javascript browser bookmarklets to save a little time during SilverStripe development.

Installation

Just drag the links to the bookmarks bar of your browser to install.

SS:Dev
SS:Build
SS:CMS
SS:Flush
SS:Dev Mode

How to use

If you have a silverstripe website open in your browser (live or development), just click the relevant bookmarklet to quickly access the CMS, flush the template cache, rebuild the database etc. for that site. The /CMS, /Dev and /Build sections of the website are opened in new windows while Flush and Dev Mode simply add the relevant URL parameter to the page you're viewing and reload the page.

Enjoy!

Update 11 Apr '12: Utilise base tag as per Jedateach's suggestion
Update 12 Apr '12: Fallback to window.location.host if base tag isn't available (i.e. in 'Dev' interface)

Jono Menz avatar

Jono Menz

  • Jedateach
    12/04/2012 12:33am (2 years ago)

    What a great idea. Thanks heaps for sharing Jono!

    A welcomed improvement would be to make use of the base tag, allowing for urls such as http://localhost/mysite/

  • Jono Menz
    12/04/2012 3:52am (2 years ago)

    Thanks for the suggestion Jedateach - I've updated the post and links (pending approval) to make use the base tag

Post a comment ...

You cannot post comments until you have logged in. Login Here.

Advertisement

Site of the Month

Find SSbits on

Top Contributers

Rank Avatar Name
1 article image Aram Balakjian
2 article image Daniel Hensby
3 article image Marcus Dalgren
4 article image Hamish Campbell
5 article image Ty Barho
6 article image njorndare
7 article image Martijn van Nieuwenhoven
8 article image Darren-Lee
9 article image Roman Schmid
10 article image Matt Clegg

View full leaderboard


Advertisement