Forum Discussion

thinkclay's avatar
5 years ago

Get "is_solution" and "solved" from page.context.message

I can't use OOTB components my topic messages, so I'm recreating the component from scratch. To keep my REST calls down, I'm using page.context as much as possible. I've been able to find almost all of the data I need by traversing and calling native methods and attributes from MessageTemplateModel, but I cannot find anything representing the database columns for is_solution or solved

Is there a method/context/ancestor I need to fetch these two properties from page/env. Please don't respond with the equivalent REST call. I know how to fetch them, but as I stated, I need to reduce the number of calls I make.

    • mattUnicorn's avatar
      mattUnicorn
      Adept

      No, unfortunately, that would require another REST call and we are working to reduce the number of calls, as they're greatly reducing the performance of our pages. For now, I'm just using CSS targeting hacks to show/hide an icon since I can't get the data through template/instance variables.