CommentsBox within a blog-list template

Posted by Community Admin on 04-Aug-2018 20:57

CommentsBox within a blog-list template

All Replies

Posted by Community Admin on 22-Jan-2011 00:00

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]".

Posted by Community Admin on 26-Jan-2011 00:00

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

Posted by Community Admin on 26-Jan-2011 00:00

It would be even nicer if the link didnt have the 3 div's around it, but now it'll actually be usable :)

Posted by Community Admin on 27-Jan-2011 00:00

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

This thread is closed