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

Forums / Developing with Sitefinity / "Leave a comment" text modify.....commentsCountControl

"Leave a comment" text modify.....commentsCountControl

3 posts, 0 answered
  1. Phani
    Phani avatar
    9 posts
    Registered:
    18 Mar 2014
    15 May 2014
    Link to this post

    change the text 'Leave a comment'  to something else.....how do I do it?

    Couple of things I did:  

    Administration >> Labels and Messages and searched for "Leave a comment". I changed its label to "Comments(0)" (that is how I want to show comments text for blogposts that do not have any comments) but that change did not take effect on the website, I republished the page, template etc. to no avail.

     I tried to modify the Comments text using jQuery: got hold of all anchor tags that  hold either "Leave a comment" or "1","2" etc. depending on the number of comments for the blogpost. I tried to alert the text of those anchor tags and got empty strings. When I looked up the source, I saw that all comments anchor tags have no text in the original HTML markup. All I see is <a href='#commentsWidget'><span></span></a>

      

    I am assuming the text "Leave a comment" and "1"/"2"/"3" etc is being loaded as an ajax request. I have no idea where it is coming from.

     

    Can someone direct me towards the solution for this.

    I am surprised that there is no straight forward way of editing the text for the comments count? or is there any? I am using Sitefinity 6.3

  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    19 May 2014
    Link to this post
    Hello Phani,

    Try recycling the application. When editing labels of certain resource types Sitefinity generates a new physical file in the App_Data->Sitefinity->GlobalResources folder. This requires Sitefinity to reinitialize and read the changed label from the actual resource file created for it. 

    Regards,
    Pavel Benov
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Gema
    Gema avatar
    46 posts
    Registered:
    02 Oct 2009
    07 Aug 2014
    Link to this post

    Hi, 

    I am using Sitefinity 7.

    I have changed this label  Type: CommentsResources  Key: CommentCount, but I can't see my text even after recycling the application.

    Have I changed the wrong label?

3 posts, 0 answered