Monday, May 07, 2012

Human readable URLs, and Routing in WebShell

It’s been on the to-do list of WebShell improvements for a long time. Turning the URLs (addresses) in our content management system (CMS) into something a bit better for humans.

I will use a client site for an example, the address of the “about us” page for Boyd HQ used to be “http://www.boydhq.co.nz/default.aspx?Page=4099” but with the upgrade it becomes “http://www.boydhq.co.nz/c/About-Us” (note: the old address still works to so any bookmarks search results and links are still good).

Why did we do this?
Two reasons
1) It just looks nicer
2) The addresses are much more memorable and easier to direct people to

Why now?
While there have been ways to do this in the past, with things like URL rewriting or generating a file for each page, they were mucky and not that robust. The routing technology introduced in previous versions and improved in version 4 of the .net framework has changed things.

How it works for anyone interested
Neither “http://www.boydhq.co.nz/c/About-Us” or “http://www.boydhq.co.nz/c” actually exist as real files or directories, "/c" (c for content) exists only virtually as a rout to "/default.aspx" (the same page used in the old system) the rout passes with it the page variable, (in this case "About-Us")  WebShell uses this variable (just like it can use "Page=4099") to pull the correct content from its SQL server database and display it within the page template. Routing can be used for much more complex URLs with many more variables and we look forward to using it more in the future to produce better and more human friendly URLs in other projects.
And in case you were wondering where the page address "About-Us" comes from WebShell first tries to use the navigation title of a page (in this case About Us), then the long title then several combinations of the 2 titles with parent pages until it finds an address that is unique within the website so even if you give 5 pages the same name in the navigation they will be given different addresses by WebShell. In most cases there will only be one and your page is just named the same as it is in the navigation with spaces replaced with a dash.

Wednesday, April 11, 2012

Log in to make changes to your website

Making changes to your website starts with logging in to your dashboard. You do this by going to www.spiral.co.nz, on the right hand side you will see a box for client login. Enter your username & password here and click on the "Sign In" button.

If you enter the wrong password for your email address you will get the alternative login screen so you can have another go at logging in.
If you don't remember your password, you can click on the "Forgot your password" link to have WebShell send you an email that enables you to reset your password.
or call us in the office on 04-5862686


Thursday, March 29, 2012

Twiggy's Broadband Mistake & the Power of Social Media

Talking to my friend Twiggy in the village yesterday I discovered she had a received a $1300 bill from her broadband provider. "How the hell did that happen?" I exclaimed, after-all, Twiggy is real computer savvy and not one to waste her earnings.

Seems she left her browser open for several days and one of those little tabs, like the ones on the right, had a small "widget" on the page which was refreshing every 3 seconds. Each time the widget refreshed data was pulled, from the server in North America, and added to Twiggy's broadband usage.  Its easy enough to do, you're browsing the web where you find something interesting to read and, with no time to read it immediately, you leave it open in one of your browser tabs to read later - something I have done a million times but won't be doing again.


What happened to Twiggy's account from her broadband provider is a story in itself, after-all she was the unwitting recipient of some stupid web development. She called the provider  to  sort out her bill and was told that there was no requirement to reduce the charges, but out of compassion a reduction to about $900 could be arranged. Bugger! So she posted a comment online in one of her regular social media spots, very soon after, the broadband provider asked "please get in touch so we can sort something out" ... the upshot was Twiggy was able to obtain a more satisfactory settlement of the charges.

The lesson is that it is worth getting hold of the right person to sort out a problem like this, and social media can be a good way to achieve this.