Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1282 posts 2739 karma points
    Jun 02, 2015 @ 18:49
    Amir Khan
    0

    Title Field Isn't Empty by Default

    Hi,

    It seems like a check for the SEO title field never returns null or empty unless you actually enter something into it and delete it.

    I'm using essentially the sample view you've shared to check for it. Thoughts?

    Thanks!
    Amir

  • Luke 110 posts 256 karma points
    Jun 04, 2015 @ 10:34
    Luke
    100

    Hi Amir,

    I think this is my error. The function part should read:

    @functions {
    
        private bool IsNullOrEmpty(object property)
        {
            return property == null || String.IsNullOrEmpty(property.ToString());
        }
    }
    

    I am going to update the project page - thank you and my apologies.

    Regards, Luke

Please Sign in or register to post replies

Write your reply to:

Draft