Copied to clipboard

Flag this post as spam?

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


  • Rasmus Berntsen 213 posts 251 karma points c-trib
    Jan 22, 2012 @ 15:51
    Rasmus Berntsen
    0

    Numbers in blog title - error

    Hi Anthony,

    First of all. Thanks for a great package. I'm testing it on my (cheap) private server at the moment. :)

    Running vers. 4.7.1 of Umbraco and vers. 1.3.6.1 of uBlogsy.

    Just a minor error. If I enter a number in the Blog title (Landing page title), the Razor file generates an error:

    Error loading Razor Script uBlogsyBrowserTitle.cshtml
    Cannot implicitly convert type 'int' to 'string'

    I guess the title always should be treated as a string (because... The title tag is always a string), no matter what.

    I don't believe it's good SEO practice to include the same title at every page, like "blog title : my blog post title". It should just be "my blog post title". I am no SEO expert, at all, this is just what I have been told from other projects I was involved in. 

  • Anthony Dang 1404 posts 2558 karma points MVP c-trib
    Jan 22, 2012 @ 21:06
    Anthony Dang
    0

    That's interesting.

    It's this line:

    string title landing.uBlogsyContentTitle;

    It turns out that when the title is just a number, something is happening is converting it to an int when its value requested.

    To fix it:

    string title landing.uBlogsyContentTitle.ToString();

     

    Regarding the SEO friendliness of  "blog title : my blog post title" .... I worked at this SEO company and they actually requested that i did that : http://www.greenlightsearch.com

    I'm not an SEO expert, but I'm inclined to go with what they asked for.

     

     

  • Rasmus Berntsen 213 posts 251 karma points c-trib
    Jan 27, 2012 @ 16:23
    Rasmus Berntsen
    0

    Hey Anthony!

    Thanks for the answers. I'll keep the thread alive and post if I meet some more. :-)

Please Sign in or register to post replies

Write your reply to:

Draft