Change to the error handler...

Aug 11, 2012 at 8:00 PM
Edited Aug 11, 2012 at 8:02 PM

I implemented a small change to the error handling in razorC that you may want to consider.  So far it has worked for most situations when the web site is able to return a page.

Currently if you were to enter http://razorc.net/contacts you would see a nice contact page, however if you had a slight cut and paste error or typo and entered http://razorc.net/contact the results would be less than attractive.  By creating a default "page not found" in the database and changing the error handling to pull that record if the requested record is not found in the database you would get a page that is consistent with the layout of the site and in most cases (depending on design) provide the user with options to find the info they are looking for instead of a page suggesting that the web site is having "technical difficulties" when actually it was the user having difficulties

For real server side issues its always best to implement a custom error page which would be outside the scope of the CMS

Just a thought, if you like the idea could you share with me how you implemented the testimonials on the razorC.net site :)

 

Coordinator
Aug 17, 2012 at 1:08 AM

I like it . So, you just simply redirect users to ~/some-error-page that is stored in db - there is no much to change...users can simply delete rcError page from root and create page with that name thru control panel

Testimonials - not sure what you want to know ? There is addon for testimonials (go to addon to see hot it works). The one on razorc.net uses jquery, jcarousellite.

Go to source code copy html , download jcarousellite.js and script.js i think (you will find the paths in source code) to see java script behind it. You will need to take a look at css too style.css holds styles for testimonials