Archive for posts dated '2009'
-
January 2009
-
Tagged by Techn0tic
After years of dodging this tag-the-blogger (“you’re it!“) memes, it was Dave Kinsella who finally got me. So with pure fear of a little dead girl climbing out of my TV in 7 days time, I’ll continue the chain. If you are tagged you should: (a) republish these rules Link to your original tagger(s) and list these rules in your post. Share seven facts about yourself in the post. Tag seven people at the end of…
-
-
February 2009
-
Convert XmlReader to String
I was in the middle of developing a member look-up AJAX function for an Umbraco project, when I ran into a slight problem, (confusion rather), about how to pull the XML back from SQL Server and return it to the browser (AJAX). The SQL statement was straight-forward, very simple, does a LIKE query against the members table, no problem there. Added “FOR XML AUTO” to return the result-set back as an XML data-type ... all…
-
-
April 2009
-
Umbraco Package – User Control File Tree
A few months ago, Tim Geyssens (aka Umbraco rockstar) released a package that gave you access to the *.config files in the /config/ folder. This has been a lifesaver in those few times where I have only had web-access to an Umbraco install and needed to tweak some config settings. Recently I found myself in the same situation, but this time I needed to quickly update a few text changes to an ASCX user-control. Due…
-
Integrating ELMAH with Umbraco
Update: For the latest details on how to integrate ELMAH with Umbraco, please read the article over on the Our Umbraco wiki. I have a few Umbraco projects that have a lot of custom .NET code, mostly in they are in the form of user-controls and XSLT extensions. As far as I’m aware Umbraco doesn’t have an extendable mechanism for exception handling and sending out notification emails, (there is the umbraco.BusinessLogic.Log, which writes to the…
-
-
June 2009
-
MySql data-source support for ELMAH
Following on from my last post (a couple of months ago) about Integrating ELMAH with Umbraco, I received a comment if it was possible for ELMAH to use MySQL as a back-end data-source. After a few emails back and forth between myself and Rajiv, (as well as Rajiv’s requests over at the ELMAH support group), the advice was to simpily develop some code that implemented the ErrorLog class, (making use of the 3 core methods:…
-
Source Code Released for User Control File Tree Umbraco Package
A few months ago I released the User Control File Tree package for Umbraco, this allowed developers to edit the front-end code/mark-up in their ASCX user-controls from the Umbraco back-end, (remotely), rather than editing them directly on the server via a text-editor. Today I have released the source-code on the Umbraco Extensions project (on CodePlex) and created a project page on the new Our Umbraco community website. If you have any comments, feedback or suggestions…
-
-
July 2009
-
Robots.txt for use with Umbraco
I originally posted this over at the Our Umbraco community wiki. [Robots.txt for use with Umbraco] I am only posting it on my blog as a cross-reference. The Our Umbraco wiki version will evolve with the community’s experience and knowledge. The Robots Exclusion Protocol has been around for many years, yet there are a lot of web-developers who are unaware of the reasons for having a robots.txt file in the root of their websites. There…
-
Add YouTube Plug-in to Umbraco/TinyMCE
Update: Following on from Dirk and Ismail’s comments, I found out that this YouTube plug-in does not work with TinyMCE v3 (which is the default richtext editor in Umbraco v4). This guide is written to works for Umbraco v3 only, (using TinyMCE v2). If you are looking for similar functionality in Umbraco v4, (TinyMCE v3), then all you need to do is enable the ‘Flash/media’ button in your Richtext editor data-type and embed the YouTube video…
-
Robots.txt Editor for Umbraco
Following up on my recent post of using Robots.txt with Umbraco, I decided that it would be nice to be able to edit the robots.txt directly from the Umbraco back-end. (Also I wanted to play a bit more with the BaseTree/ITree classes). This afternoon I had a few hours to spare – actually I was procrastinating on another job, (don’t tell my client – I’ll finish it off later tonight) – so I got down…
-
-
September 2009
-
Umbraco: Ultimate Picker XSLT Example
Chatting with Dan (my partner-in-code at Bodenko) about the Ultimate Picker data-type in Umbraco, we realised that we couldn’t find any examples of how to use the data in XSLT. So obviously needing an excuse to write-up a new blog post, here we go. If you need a quick overview about the Ultimate Picker data-type, see Tim Geyssens’ blog post. For my example, using a default Umbraco install (with Runway), we will create a new…
-
How to convert NameValueCollection to a (Query) String [Revised]
Following on from a comment on my previous post about converting a NameValueCollection to a (query) string – I have finally got around to revising my code snippet. Now the method will handle same key multiple values, (it no longer comma-separates them). I have also added extra parameters so that you can define your own delimiter (since the HTTP specification says that you can use both ampersands & and semicolons ;) and there is an…
-
Putting your ASP.NET Web Application in Maintenance Mode (using ISAPI_Rewrite)
Prompted by @slace’s tweet: i wish there was a way to use app_offline but still view from certain ip's — Aaron Powell (@slace) September 29, 2009 I replied with a suggestion that we’ve used in the past. Aaron said I should blog about it… so here I am (again)! A while ago we needed to do an Umbraco upgrade (from v3 to v4) on a production server – in my opinion it was a pretty…
-
-
October 2009
-
WordPress Plugin Development: Beginner’s Guide, by Vladimir Prelovac
I have recently finished reading Vladimir Prelovac book on WordPress plug-in development, (WordPress Plug-in Development: Beginner’s Guide, Packt Publishing, 2009). As an experienced WordPress plug-in developer, I was pessimistic at the start – there is already a wealth of documentation and detailed tutorials on the web, who would need a book? However with Vladimir being a well-respected WordPress plug-in developer, I was curious to see his approach on the subject, and you never know –…
-
-
November 2009
-
How to use umbraco.library GetMedia in XSLT
From time to time I notice a reoccurring post over at the Our Umbraco forum; how to display an image (from the Media section) in XSLT? A quick answer can be found on the Our Umbraco wiki for the umbraco.library GetMedia method. For most uses, the last example in the wiki works great. But I want to show you a “super safe” way of dealing with GetMedia in XSLT. Where I find a lot of…
-