CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

robotstxt editor v2 released

1/7/2010 5:40:07 PMAvatarLee KelleherLocation: Yatton, Bristol, UKposts: 463Karma: 1357

I finally got around to releasing version 2 of the Robots.txt editor.

Changes & new features:

  • Restructured the package files, they all live in a folder called "robots-txt" (still under the /umbraco folder - but self-contained)
  • Errors are now displayed using the Feedback control (as opposed to the Speech Bubble in the bottom-right corner).
  • Robots.txt editor has buttons for adding new User-Agent and Disallow rules, as well as comment/uncomment functionality.
  • Changed the Robot icon... courtesy of Mozilla Firefox's "about:robots" favicon.
Hope you all enjoy the update... let me know if you come across any bugs or ideas for a future release!
Cheers,
- Lee

1/18/2010 4:28:46 PMAvatarJorritLocation: Amsterdam, The Netherlandsposts: 1Karma: 22
Comment with ID: 23598

Hi Lee great package but I found a little bug in your javascript. When you cancel an "insert disallow rule" it still adds an empty rule. The following lines solves this problem.

 

 

 

function

 

robotsTxtInsertRule(rule, defstr) {

 

var value = prompt('Please enter a value for the rule', defstr);

 

if (value) { // check if the OK button is pressed

insertCode(

'\n' + rule, value, '<%= editorSource.ClientID %>');

}

}

Jorrit

1/18/2010 9:48:37 PMAvatarLee KelleherLocation: Yatton, Bristol, UKposts: 463Karma: 1357
Comment with ID: 23614

Thanks Jorrit, I'll add the check to the next version!  Much appreciated.

Cheers, Lee.

Please login or Sign up To post replies