My very few BlogCFC woes

So this isn’t going to be interesting for a non-techie, and is really only going to be useful for people using BlogCFC.

So I’m really loving being all Coldfusion based for my blog, it’s nice being able to browse the code and see what’s going on, Mr Camden has done a great job building it, and his wise cracking code comments make it even more enjoyable to install.

However, I have had a couple of snags when installing it, so I thought I’d mention them incase others had similar problems.

Issues with BlogCFC Mobile SES on Railo

The BlogCFC documentation points to this thread on google groups, explaining how to get the SES URLs working in Railo (which is the Coldfusion server I use for the blog if you haven’t guessed), and that’s all great and good. Without the additional servlet-mappings you get 404 errors aplenty.

But I was getting 404 errors when linking to the SES URLs on a mobile device. So I had to add an additional line to the servlet-mapping and then reboot my Railo install. Maybe I didn’t need to do that part, rebooting definately fixed it after adding the additional line, but I’d like to know if there’s a way to do a “graceful” Railo restart, like you can do reload/graceful with Apache.

Anyway, this is the servlet mapping stored in the WEB-INF/web.xml file, with the additional line required in bold (also this is my first use of the </code> tag!).

CFMLServlet
/index.cfm/ *
/page.cfm/ *
/print.cfm/ *
/rss.cfm/ *
/slideshow.cfm/ *

/mobile/index.cfm/ *

So there you have it, I hope that helps someone else one day too.

NOTE: I put a white space in the “/ *”, otherwise it was starting a comment and breaking the font for the rest of the page. DON’T put the white space in your web.xml file!

BlogCFC Admin styles in Google Chrome

So this isn’t quite so bad, but was still a bit annoying. But bloody easy to fix/make bearable. The admin panel works fine in Firefox, no complaints at all, but in Chrome there were a few issues I had.

The #content div was really narrow and didn’t fill up the page width, so all the tabs at the top of the page were stacked on top of each other and misaligned. This made it quite hard to use the tool, as I had to do a lot of scrolling up and down the page.

As well as that, I thought the font size was much to small, which meant I had even less stuff on the screen. Part of the problem might be because I’ve given up my 1080p monitor to the Mac, so I’m currently using a 1280 x 1024 17″ monitor.

Anyway, to fix these 2 issues, I just added these 2 lines to the admin.css file


font-size:0.8em;
width:700px;

When I switch back to my big screen I might want to set that 700px to something a bit higher, but it’s pretty useable now.

So this might be a quick dirty fix, it might not be the best way around it, but it works fine and I’m happy. I’m not sure if it’ll get over written when the blog gets updated though.

Has anyone else had either of these issues with BlogCFC?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s