Snippets - Little bits of code to make you happy
SilverStripe developer bookmarklets
Tweet2 April 2012 | | | Supports v2.4, v2.3
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)
2 Comments
RSS feed for comments on this page RSS feed for all comments
Jedateach
12/04/2012 12:33am (1 year 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 (1 year 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.