Forum Discussion

kbulens's avatar
kbulens
Guide
11 years ago

Getting numbers out

Hi,

 

I need to get some numbers out to output, for ex. :
- X members
- X discussions

- X solved questions


Post specific (to put on the homepage):
- that specific topic has X answers and X kudo's

  • Well, then you need to see the basics first. Try finding the REST documentation on the forums here.
  • Well, then you need to see the basics first. Try finding the REST documentation on the forums here.
  • kbulens  You mean to strip off the text "members" from the "10 members" and display "10" only? Please clarify your exact requirement. I think you might not need to do this if you can get this from the REST response.

    • kbulens's avatar
      kbulens
      Guide
      I want to know, in case of "10 members", how i get the 10 :)
      • VarunLuthra's avatar
        VarunLuthra
        Advisor
        Are you creating a custom component to create a new widget? Though what you're looking for can be simply stripped off using jquery, but why do that when REST call will give you the number itself. Please post your code if you are creating a custom component.