If you need to protect your FW/1-based site against SQL injection and cross-site scripting (XSS) attacks - and you do! - you can do a lot worse than use John Mason's Portcullis. It's a single CFC which scans and sanitises your Form,URL and Cookie scopes, and optionally sets up a blacklist of repeatedly-offending IP addresses.
Read more »
Posted on 25 February, 2011, in
ColdFusion, FW/1
A quick tip for when you’re designing a site with centered content.
If the content doesn’t reach to the bottom of the window, there’s no vertical scroll bar; if you then navigate to a longer page, you’ll see the content jump about 10px to the left as it’s centered in a slightly narrower window. Sometimes, you’ll even see this jump half-way through rendering a longer page.
To solve this, simply add this to your CSS:
html {
overflow-y: scroll;
}
Now, you’ll always have space reserved for the vertical scrollbar, whether or not it’s required; and you won’t see the sideways jumping any more.
Posted on 18 November, 2010, in
CSS, Quick Tips
As of version 5.3, Mura CMS uses CKEditor 3 as its HTML WYSIWYG editor. Blue River have done a great job of integrating the editor, but there are a few extra customisations you might like to make.
If you've started with the merced theme, you'll see in the js directory a subdirectory named editor. This is where all the customisation takes place. (If you have updated from a Mura installation prior to 5.3, you won't have this directory - it didn't appear for me even when I updated the default site files. If you download a clean install of Mura, you'll find the files at /www/default/includes/themes/merced/js/editor.)
Read more »
Posted on 31 October, 2010, in
Mura CMS
As you may have noticed from some of my recent posts, I've recently started to use Sean Corfield's FW/1 as the framework for my sites, and it's revolutionised the way I write code.
One thing I feel is missing, though, is the ability to send emails from within the app. This seems to me to be a fundamental requirement of nearly every web app - although I also understand Sean's wish to keep FW/1 as lean and stripped-down as possible.
Read more »
Posted on 24 September, 2010, in
ColdFusion, EM/1, FW/1
Here's another problem I've run into with ColdFusion's ORM (there seem to be a few of these recently...).
I've only just started running a CF dev environment under Apache on my Mac - I was previously running IIS under VMWare. The problem comes when using Apache's mod_rewrite for URL rewriting.
Read more »