Forum Discussion

SheryBulos's avatar
5 years ago

how to change the component dynamically?

Hi, 
Excuse me, I am new to khoros.
I just want to know, how could I achieve this following situation? 

I have a component
which consists of question and some answers, by choosing one answer; the question and the set of answers changed based on the chosen answer. 

so the question is how should I get the other question

  1. should I call external API to a hosted backend?
  2. should I save this in save this data somewhere in the community, so I get this data from the community ? if this is the answer how ?
  3. is it actually possible to change the component content based on the api result each time?

Thanks in Advance,
Shery RaniaWael 



 

  • Hi

    If the component is out-of-the-box OOTB (not a custom component) usually they are not typically configurable.

    If the "content" you want, from the out-of-the-box component, is visible on-screen then you can use CSS to hide / adjust or move items around to tweak the layout.

    If the content you're after isn't output by the OOTB component then you need a custom component. 

    Have a look at in Studio > API Browser and you can run some LiQL queries

    Good place to start:
    https://developer.khoros.com/khoroscommunitydevdocs/docs/tutorial-your-first-custom-component

     

      

     

  • Hi

    If the component is out-of-the-box OOTB (not a custom component) usually they are not typically configurable.

    If the "content" you want, from the out-of-the-box component, is visible on-screen then you can use CSS to hide / adjust or move items around to tweak the layout.

    If the content you're after isn't output by the OOTB component then you need a custom component. 

    Have a look at in Studio > API Browser and you can run some LiQL queries

    Good place to start:
    https://developer.khoros.com/khoroscommunitydevdocs/docs/tutorial-your-first-custom-component