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

Forums / Bugs & Issues / CommentsBox within a blog-list template

CommentsBox within a blog-list template

4 posts, 0 answered
  1. Jerremy
    Jerremy avatar
    2 posts
    Registered:
    01 Apr 2009
    22 Jan 2011
    Link to this post
    This control has two major issues:

    The first issue is that you can't get a css-style on the first div it renders, as such it is impossible to render this control as an inline style. The CssClass property has effect on the inner-<a> tag, not the 3!! div's around it.

    You can't change the format of the "x comments" line, because you can't use the HyperLinkStringFormat property, using it will crash the site (if you look at the code in reflector you'll quickly find out why, circular reference anyone?).

    I've tried to get the comment count using several other technique's but have thus far failed. The 'insert helper' doesn't really help, as it just output's "Telerik.Sitefinity.Model.ProviderTrackedList`1[Telerik.Sitefinity.GenericContent.Model.Comment]".
  2. R. Atanasov
    R. Atanasov avatar
    19 posts
    Registered:
    03 Nov 2014
    26 Jan 2011
    Link to this post
    Hi Jerremy,

    Thank you for reporting this issues. Your request has been logged with high priority (ID 106018) and will most probably be fixed by the time of the next internal build, in case you are comfortable using it, or the next service pack, otherwise.

    The class name set to the CssClass property will be set to the most outer DIV element, and a new HyperLinkCssClass property will be introduced, to enable setting a CSS class name to the hyper link element.

    Circular references will also be fixed, of course.

    All the best,
    Radoslav Atanasov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Jerremy
    Jerremy avatar
    2 posts
    Registered:
    01 Apr 2009
    26 Jan 2011
    Link to this post
    It would be even nicer if the link didnt have the 3 div's around it, but now it'll actually be usable :)
  4. R. Atanasov
    R. Atanasov avatar
    19 posts
    Registered:
    03 Nov 2014
    27 Jan 2011
    Link to this post
    Hi Jerremy,

    We removed 2 of the DIVs and are now working on removing the 3rd one - which unfortunately is a somewhat more general issue in Sitefinity. In case this change is approved by our QA team, in the next internal build the CommentsBox control will be a simple link with no surrounding DIVs. CssClass will be this link's class name and a new property NoCommentsCssClass will allow overriding the class name in the 0 comments case (when not set it will still default to CssClass, so it can also be ignored).

    Regards,
    Radoslav Atanasov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about 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