<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rssdatehelper="urn:rssdatehelper"><channel><title>Umbraco and Things</title><link>http://www.yoyocms.co.nz</link><pubDate>2012-04-18T15:44:18</pubDate><generator>umbraco</generator><description>Tips about Umbraco and other stuff</description><language>en</language><item><title>Cycle Lane, What Cycle Lane ?</title><link>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/4/13/cycle-lane,-what-cycle-lane-/</link><pubDate>Fri, 13 Apr 2012 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/4/13/cycle-lane,-what-cycle-lane-/</guid><description><![CDATA[
<p>Yet another example of drivers not understanding what it's like
to be a cyclist and not checking that the road is clear before
blocking a cycle lane - something which is illegal in any case.</p>

<p>At the time of this incident I was travelling at approx 35kmh,
wearing a hi-vis jacket and also had my headlight on flashing. My
headlight is more for mountain bike / off road and is visible for
hundreds of metres. So basically this driver has no real excuse for
not seeing me !</p>

<?UMBRACO_MACRO
sourceurl="http://www.youtube.com/watch?v=H-D4iNeVOQA"
maxheight="" macroAlias="OEmbed" maxwidth="450" /> 

<p>&nbsp;</p>
]]>;</description></item><item><title>Road Madness - Red Light Runners</title><link>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/4/13/road-madness-red-light-runners/</link><pubDate>Fri, 13 Apr 2012 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/4/13/road-madness-red-light-runners/</guid><description><![CDATA[
<p>In biking home from work yesterday I caught the following 3
drivers making no attempt to stop on an orange &nbsp;/ red light -
all cases of Road Madness.</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2479/boyracer.jpg" width="500" height="217" alt="Boyracer"/></td>
</tr>

<tr>
<td style="text-align: center;">The Toyota was committed, it was
the boy racer behind it that made no attempt<br />
 to stop on the orange light.</td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2485/red4wd.jpg" width="409" height="200" alt="Red 4WD"/></td>
</tr>

<tr>
<td style="text-align: center;">This image is quite blurry but it
is obvious the red 4WD in the<br />
 left hand lane had not even entered the intersection when<br />
 the light had turned red.</td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2491/mainstream1.jpg" width="500" height="325" alt="Truck"/></td>
</tr>

<tr>
<td style="text-align: center;">This intersection (Main North Road
&amp; Johns Road, Christchurch) is a common<br />
 place for people to run red lights. In this one the truck made
absolutely<br />
 no attempt to stop on the orange and had only just entered
the<br />
 intersection when the light turned red for him.&nbsp;</td>
</tr>
</tbody>
</table>

<p>Given the recent publicity of bad driving by the Road Mandess TV
series I thought the last image here was quite appropriate - I
appreciate the in-truck cameras are highlighting bad driving but
from my experience whilst cycling truck drivers are equally the
culprits, yet they are not featured that much on the TV program.
Something to ponder...</p>
]]>;</description></item><item><title>Interesting and Eventful Cycle Home</title><link>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/2/16/interesting-and-eventful-cycle-home/</link><pubDate>Thu, 16 Feb 2012 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/2/16/interesting-and-eventful-cycle-home/</guid><description><![CDATA[
<p>The ride home yesterday was an eventful and interesting one. Two
red light jumpers, a young couple jumping out in front of me and a
driver that was drawn to melike a piece of metal to a magnet... Ahh
the joys of cycling !</p>

<h3>Red Light Jumpers</h3>

<p>Whilst these create no risk to me, it is the attitude of such
drivers that is of concern. They are obviously too impatient to
obey the road rules and stop at a red light. You just have to hope
that you never are in close proximity to these people!</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2187/20120215-1.jpg" width="600" height="295" alt="20120215-1"/></td>
</tr>

<tr>
<td style="text-align: center;">The white car was committed but the
motorbike and following car blatantly ran the red light.</td>
</tr>

<tr>
<td style="text-align: center;"><img src="/media/2193/20120215-2.jpg" width="600" height="245" alt="20120215-2"/></td>
</tr>

<tr>
<td style="text-align: center;">This was an even worse example of
red light running - the Pugeot was completely behnid the line when
the light turned red.</td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<h3>My Animal Magnetism</h3>

<p>The driver had previously passed me and gave me ample space, I
then caught up to her and passed her due to peak hour traffic. Then
when passing me again she continued to move to the left whilst
passing me, to a point where her left hand wheels were running on
the white lines. Flattering that she was so attracted to me, but
somewhat disconcerting as a cyclist.</p>

<p style="text-align: center;"><img src="/media/2199/20120215-3.jpg" width="600" height="292" alt="20120215-3"/></p>

<h3>Jay Walkers vs Cyclist</h3>

<p>And last but not least this young couple who tried their best to
pretend I wasn't there - maybe my hi vis jacket is not visible in
broad daylight !.</p>

<p>I was travelling at around 35kmh so any contact with a human of
doubtful intelligence would not be pretty. Thankfully the female
registered some sense at the last minute and stepped back - the
male thought it was a good joke - guess it's a case of too much
testosterone and trying to impress his partner at how brave he was
! Just an idiot in my view.</p>

<p style="text-align: center;"><img src="/media/2205/20120215-4.jpg" width="600" height="273" alt="20120215-4"/></p>
]]>;</description></item><item><title>Red Light Runner</title><link>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/2/1/red-light-runner/</link><pubDate>Wed, 01 Feb 2012 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2012/2/1/red-light-runner/</guid><description><![CDATA[
<p>The following 4 images were captured in late January where the
driver of the truck completely failed to adhere to the traffic
lights.</p>

<p>I provided the images to the company concerned - from the
feedback provided they were not pleased with the evidence and took
appropriate action.</p>

<p>The irony of the situation is that the companies headquarters
are located approx. 100 metres past the set of traffic lights, so
not sure why the driver couldn't wait the extra few seconds for the
lights to again turn green!</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2512/1.jpg" width="500" height="262" alt="March1"/></td>
</tr>

<tr>
<td style="text-align: center;">Lights furst turning orange, truck
nowhere in sight</td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2518/2.jpg" width="500" height="281" alt="March2"/></td>
</tr>

<tr>
<td style="text-align: center;">Truck - enter stage right</td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2524/3.jpg" width="500" height="281" alt="March3"/></td>
</tr>

<tr>
<td style="text-align: center;">Lights are red, truck still hasn't
entered the intersection</td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<table border="0" cellspacing="0" cellpadding="3" align="center">
<tbody>
<tr>
<td><img src="/media/2530/4.jpg" width="500" height="281" alt="March4"/></td>
</tr>

<tr>
<td style="text-align: center;">Look out I am coming
through...</td>
</tr>
</tbody>
</table>
]]>;</description></item><item><title>Umbraco Custom Section - Help Manager</title><link>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2012/1/18/umbraco-custom-section-help-manager/</link><pubDate>Wed, 18 Jan 2012 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2012/1/18/umbraco-custom-section-help-manager/</guid><description><![CDATA[
<p>Comtent managed sites are fantastic for providing the tools that
enable non technical users to manage the day to day content on a
site.</p>

<p>Several factors are critical to the level of success achieved in
this regard:</p>

<ul>
<li>The intuitiveness and ease of use of the administration area.
<strong>Umbraco has this well covered!</strong></li>

<li>Help documentation. Non technical users will require assistance
in some aspects of ongoing site maintenance no matter how intuitive
the administration area is. Notes will be taken on how to do
things, notes invariably get lost, the hand writing is illegible or
it doesn't make sense when you refer to it 6 months later.</li>
</ul>

<p>Enter stage right: <strong>The Yoyocms Back Office Help
Manager</strong></p>

<p>This package installs a custom tree into the Umbraco
administration area where help information can be stored.</p>

<p>The data is entered via the standard Rich Text Editor and so all
functionality available within the editor is as your disposal, e.g.
adding images, links to media files, etc.</p>

<p>You are able to record information about specific document and
media types and these will appear by default.</p>

<p>You are then also able to create generic help information (e.g.
how to format a table) and then choose which document/media types
it should appear on (most proably only those that have the rich
text editor available).</p>

<p>For more information and to download the package please visit
the <a
href="http://our.umbraco.org/projects/backoffice-extensions/back-office-help-manager"
 target="_blank"
title="Visit the Umbraco website to download the help manager package">
Umbraco website</a>.</p>

<p>I'd love to hear from you if you have any feedback regarding
this package.</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>
]]>;</description></item><item><title>Umbraco Custom Section - Tag Manager</title><link>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/12/7/umbraco-custom-section-tag-manager/</link><pubDate>Wed, 07 Dec 2011 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/12/7/umbraco-custom-section-tag-manager/</guid><description><![CDATA[
<p>I was recently responsible for the development of the
www.foursquare.co.nz website, which uses several instances of the
Tags Data Type with different Tag Groups being defined.</p>

<p>During the development and testing phases it became apparent
that there was the need to be able to manage incorrectly entered
and/or redundant tags within the site.</p>

<p>Liking a challenge I identified that a custom tree would provide
a nice interface for the management of the data.</p>

<p>So thanks to a C<a
href="http://umbraco.com/help-and-support/video-tutorials/"
target="_blank">orporate Umbraco TV Subscription</a> and perusing
the <a href="http://our.umbraco.org/forum" target="_blank"
title="Umbraco Forums">Umbraco Forums</a> I was able to develop a
custom tree that lists all recorded Tags within a site.</p>

<p>The package provides the following functionality:</p>

<ul>
<li><strong>Branch / leaf view</strong><br />
 Branches are the tag groups, leaves are the individual tags.</li>

<li><strong>Delete functionality</strong><br />
 This deletes both the tag entry and any associated links to nodes
int he content tree.</li>

<li><strong>Edit functionality</strong><br />
 The ability to edit the tag to correct typos, etc. Also a listing
of tagged nodes is listed - these are hyperlinked to enable direct
access to content nodes.</li>
</ul>

<p>The ability to create new Tags has been deliberately omitted
from the package - this is due to the built in functionality of the
data type where tags are created and the primary purpose of this
package is to provide in interface for maintaining tags.</p>

<p>To download the package please visit the <a
href="http://our.umbraco.org/projects/backoffice-extensions/tag-manager"
 title="Visit the Our Umbraco website to download the Tag Manager Package.">
Project Page on the Our Umbraco website</a>.</p>
]]>;</description></item><item><title>Umbraco Custom DataType - Select An Image Crop</title><link>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/10/20/umbraco-custom-datatype-select-an-image-crop/</link><pubDate>Thu, 20 Oct 2011 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/10/20/umbraco-custom-datatype-select-an-image-crop/</guid><description><![CDATA[
<p>I have just finished working on <a
href="http://www.foursquare.co.nz" target="_blank"
title="Visit the Four Square website">www.foursquare.co.nz</a>&nbsp;and
near the end of the project it was identified that one document
type was lacking in some functionality.</p>

<p>The document type had a media picker associated with it but the
document type could be used in both the main column and also the
right hand column. The issue was one of which image should be
displayed.</p>

<p>Several options existed for a solution, but the one I chose (as
I love a challenge) was to see if I could develop a custom datatype
that lists all the defined Image Crops for a given Data Type
("Image Cropper" datatype by default).</p>

<p>I had previously come across a <a
href="http://www.nibble.be/?p=50" target="_blank"
title="TIm Geyssens - Creating Custom Umbraco Datatype">Creating
Custom Umbraco Datatypes</a> blog post by&nbsp;Tim Geyssens before
and it was this I used as my starting point.</p>

<p>I found the image crop data in
the&nbsp;<strong>cmsDataTypePreValues</strong> table stored as a
string with multiple delimiters.</p>

<p>I then copied Tim's code for each of the classes and made my
necessary amendments.</p>

<p><img src="/media/1885/imagecropselector.gif" width="365" height="199" alt="Image Crop Selector" class="imgRight"/>And so my
first custom datatype was born - a healty little dropdown list,
weighing very little and with all the right bits (ability to set
which datatype, validation within a document type).</p>

<p>One thing I did discover when testing it within an xslt file was
that you first needed to assign the value to a variable prior to
trying to output the image path. See the following code
snippet.</p>

<pre>
 &lt;xsl:variable name="selectedCrop" select="./selectImageCrop"/&gt;<br />
                    &lt;img&gt;<br />
                        &lt;xsl:attribute name="src"&gt;<br />
                            &lt;xsl:value-of select="umbraco.library:GetMedia(./portfolioImage,0)/imageCrops/crops/crop[@name = $selectedCrop]/@url"/&gt;<br />
                        &lt;/xsl:attribute&gt;<br />
                    &lt;/img&gt;
</pre>

<p>A possible progression of this datatype would be to incorporate
it into a modified media picker datatype so that they work in
tandem. Also (and even better) would be to run a check against the
selected media item and list only those crops that exist... Now
that would be funky !</p>

<p>Here's the source code if anyone is interested - drop me a line
if you download it and use it - I'd love to hear from you.</p>

<h2>How To Use</h2>

<ol>
<li><a
href="/media/1891/yoyocms.umbraco.imagecropselector.zip">Download
the source code</a></li>

<li>Compile and place the resulting dll in your bin directory</li>

<li>Go to Developer - Datatypes and create a new DataType - there
will be an option called Image Crop Selector - choose this
one.</li>

<li>Once initially created you then have a field called "Data Type
Name" - enter the relevant datatype name for your image cropper
(the default one is called Image Cropper).</li>

<li>Add to your document type as required.</li>
</ol>

<p><a href="http://www.yoyocms.co.nz/contact/" title="Contact me">Drop me a
note</a> if you download this and find it useful. Also I'd love to
get feedback on my coding - I am always keen to advance my coding
skills.</p>
]]>;</description></item><item><title>Breathe In !</title><link>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2011/8/29/breathe-in-!/</link><pubDate>Mon, 29 Aug 2011 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://www.yoyocms.co.nz/blog/2011/8/29/breathe-in-!/</guid><description><![CDATA[
<p>When discussing the fact I cycle from Rangiora to Christchurch
with people invariably they ask what it's like cycling on the Old
Waimakariri Bridge.</p>

<p>Overall I feel safer on the bridge than on the open road as the
vast majority of motorists are very considerate.</p>

<p>However you always get one to break that bubble, and here are
the photos to prove it !</p>

<p><img src="/media/1520/bridge1_500x274.jpg"  width="500"  height="274" alt="2011-08-29-Waimak Bridge" style="display: block; margin-left: auto; margin-right: auto;"/></p>

<p>&nbsp;<img src="/media/1526/bridge2_500x274.jpg"  width="500"  height="274" alt="2011-08-29 Waimak Bridge 2" style="display: block; margin-left: auto; margin-right: auto;"/></p>

<p>I was 3/4 the way across when this motorist passed me in the
face of oncoming traffic, for him to then pull into the garage not
100 metres past the end of the bridge. He just couldn't wait the
extra 4-5 seconds for the cars to pass or for me to cycle off the
bridge before overtaking me!</p>
]]>;</description></item><item><title>The Ultimate Multi-Tasker</title><link>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/8/10/the-ultimate-multi-tasker/</link><pubDate>Wed, 10 Aug 2011 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/8/10/the-ultimate-multi-tasker/</guid><description><![CDATA[
<p>Whilst biking home today through Kaiapoi I captured the
following chap on my helmet cam trying to perform as many tasks as
possible at one time.</p>

<p>As per the first picture he driving his car in peak hour traffic
whilst holding a book up with the hand that he was steering with.
And then with the other hand he was texting on his phone.&nbsp;</p>

<p>Impressive effort to say the least !</p>

<table border="0" cellspacing="0" cellpadding="5" align="center">
<tbody>
<tr>
<td><img src="/media/984/kaiapoi1.jpg" width="500" height="294" alt="2011-08-10 Kaiapoi 1"/></td>
</tr>

<tr>
<td>&nbsp;<img src="/media/990/kaiapoi2.jpg" width="500" height="294" alt="2011-08-10 Kaiapoi 2"/></td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>

<p>However, unlike all other humans on this planet, he didn't seem
to have a third arm. In negotiating a roundabout further along the
road, and then pulling over to the left, not once did he indicate
to let others know what he was doing.</p>

<p>Whilst it's not totally clear in the second photo the company is
Trinity's Cleaning Services.&nbsp;</p>

<p>&nbsp;</p>
]]>;</description></item><item><title>Blog4Umbraco Comment Notifications</title><link>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/8/4/blog4umbraco-comment-notifications/</link><pubDate>Thu, 04 Aug 2011 00:00:00 GMT</pubDate><guid>http://www.yoyocms.co.nzhttp://yoyocms.co.nz/blog/2011/8/4/blog4umbraco-comment-notifications/</guid><description><![CDATA[
<p>As part of the recent reskinning / upgrading of this site I
became aware that I had received several comments on some of my
Umbraco blog posts.</p>

<p>My first thought was - damn and how rude to not have responded
and get to know other Umbraco users.</p>

<p>So I did a bit of Googling and found some reference on Codeplex
that comment notification functionality is being built, however
nothing currently existed.</p>

<p>So I thought I'd come up with a solution to this problem. The
following is very much a temporary solution but one that at least
helps fill a gap pending release of notification functionality
within the core product.</p>

<p>Firstly, I wrote a very short and simple class that generates an
email notification and compiled the project into a DLL file.</p>

<p>And then I made changes to the following files:</p>

<p>
<strong>/usercontrols/Blog4Umbraco/AjaxCommentForm.ascx</strong><br />
 <em>Added another AJAX call where oyu specify the email address to
send the notification to.</em></p>

<p><strong>/config/restExtensions.config</strong><br />
 Added the /rest extension for the class previously written.</p>

<p>The email generated is a simple one liner confirming a new
comment has been added to a blog post. This could be extended to
include the comment and the persons details - feel free to adjust
to your own needs.&nbsp;</p>

<p>Feel free to <strong><a
href="/media/794/umbraco_comment_notifications.zip" target="_blank"
title="Download code for Umbraco Blog Comment Notifications">download</a></strong>
all the associated code for this change - included in the zip file
is :</p>

<ul>
<li>The source code of the project I created for the class</li>

<li>The compiled DLL file to simply drop into the BIN
directory.</li>

<li>The two files mentioned above with inserted code and comments
wrapping the changes - I trust it will be a simple task to update
your own blogs.</li>
</ul>

<p>Be good to hear from you if you use this on your site and found
it useful.</p>

<p>Cheers</p>

<p>Nigel</p>
]]>;</description></item></channel></rss>

