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

Forums / Developing with Sitefinity / Blogs: Hiding more info link if not needed

Blogs: Hiding more info link if not needed

3 posts, 0 answered
  1. Martin
    Martin avatar
    10 posts
    Registered:
    09 Jan 2008
    23 Apr 2008
    Link to this post
    We are trying to find a way to only display a 'more information' link for blog posts that are summarized if they need them. For example, if the limit is 50 words, to display a link for more information after the elipses of a 100 word post but display nothing if the post is say 20 words.

    Can this be done out of the box, or what is required for something like this?

    thanks!
  2. Martin
    Martin avatar
    10 posts
    Registered:
    09 Jan 2008
    24 Apr 2008
    Link to this post
    Just to clarify:

     

    Right now it looks like this for entries:

    (Where short entries that are under the 50 character limit we set have a unnecessary link to the full article)

    Hotel location changed
    The hotel location for the Spring Meeting has changed to the Cove Lakeside Resort in Westbank, B.C. Full article >

    Comments (0)

    Labour market
    Fuel prices and labour costs should moderate somewhat starting this year, easing some of the upward pressure on costs. Nevertheless, industry costs are expected to rise by an average of 6.5 per cent annually over the next 5 years. Continued growth in sales, improvements in labour productivity and more efficient use of materials will allow profits to ... Full article >

    Comments (0
     

    And we want it to look like this:

    (With no link for posts that are below the threashold for the contents to be summarized)

    Hotel location changed

    The hotel location for the Spring Meeting has changed to the Cove Lakeside Resort in Westbank, B.C.

    Comments (0)

    Labour market
    Fuel prices and labour costs should moderate somewhat starting this year, easing some of the upward pressure on costs. Nevertheless, industry costs are expected to rise by an average of 6.5 per cent annually over the next 5 years. Continued growth in sales, improvements in labour productivity and more efficient use of materials will allow profits to ... Full article >

    Comments (0
     

    What can be done to accomplish this?
     

  3. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Apr 2008
    Link to this post
    Hi Martin,

    Currently, you could not achieve this functionality. The only way not to show this link is to delete it from the control template. If you are sure that all the posts would be shorter than 50 characters, you could safely delete it. The blog's PostList template is PostListTemplate.ascx, located in Sitefinity\ControlTemplates\Blogs

    We will log this as a feature request, because such option will indeed be useful.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
3 posts, 0 answered