1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Blog naming

Blog naming

4 posts, 0 answered
  1. Embrace
    Embrace avatar
    17 posts
    Registered:
    10 Jul 2008
    16 Apr 2011
    Link to this post
    We want to set up a blog but just one. We want the URL to be www.company.com/blog but when we set up a blog SF sets it to be www.company.com/blog/blog which of course seems redundant.

    How can we do this?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    12 May 2017
    18 Apr 2011
    Link to this post
    Hello Embrace,

    By default the URL of a Blog consists of its Title ( "/[UrlName]" ), and the URL of a BlogPost is generated as "/[Parent.UrlName]/[PublicationDate, {0:yyyy'/'MM'/'dd}]/[UrlName]". Since we are constructing the full URLs dynamically the final URL will always consist of the Blog's location i.e. the page where you have dropped the BlogPosts control (for instance www.mycompany.com/page/ParentBlogUrlName/PublicationDate/BlogPostUrlName). If you wish to customize the way BlogPost URLs are constructed you will need to create a custom provider for blogs, inherit from OpenAccessBlogProvider and override the GetUrlFormat method, specifying the desired urlFormat. For more information and sample code, please take a look at this forum thread.

    All the best,
    Boyan Barnev
    the Telerik team

  3. Willie
    Willie avatar
    1 posts
    Registered:
    12 Sep 2007
    12 May 2011
    Link to this post
    I was curious about how to do this as well. It seems the link you supplied does not work. Do you have a link that shows sample code in how to do this?
  4. Tihomir
    Tihomir avatar
    23 posts
    Registered:
    09 Dec 2016
    12 May 2011
    Link to this post
    Hi Willie,

    I am very sorry for the inconvenience caused. You could find the the above mentioned thread here:
    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/change-url-s.aspx

    Kind regards,
    Tihomir
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered