Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nathan McGuirk 7 posts 27 karma points
    Jul 05, 2013 @ 17:05
    Nathan McGuirk
    0

    How to test against Default values of empty properties

    Hi All,

    I've hit a strange bug I honestly have no idea how it began. On many of my doc types are non-mandatory properties which I do some checks in the template before posting. Simple does value section-logo != null, etc.

    Prior to 2 hours ago this worked, but now I get "Input string was not in a correct format" errors for the variables I assign the property values to. What I've discovered is that these property values without any input added to them give me a  "umbraco.presentation.nodeFactory.Property" as a default.

    I can't seem to test against this "umbraco.presentation.nodeFactory.Property" default set value, but what I need to be able to do is ignore a block of code if the user hasn't added any content to the property field.

    Can anyone let me know why this may have changed or how to do this test? I'm currently on Umbraco v6.0.6.

Please Sign in or register to post replies

Write your reply to:

Draft