Forum Discussion

lorna's avatar
lorna
Maven
12 years ago

Saving a variable?

OK, it's a long story. We have a custom component that calls a syndicated chat widget from outside of Lithium. We want to able to customise this so that a select group (who do NOT have admin rights) would be able to determine if chat is available or not. It's an internal chat so they want to shut it off manually if they have a meeting.

 

I'm thinking that I can maybe do this with an endpoint if there is some way of saving a variable to store the current status of chat. I thought about text keys or custom content but I don't see any way of editing them using rest api.

 

Is there any way to save a variable to control this? Or a better way of doing it altogether?! :)

 

 

  • Hi lorna,

     

    From what you're describing, I think a custom setting might work for your purposes. If you've ever tested out the settings calls in the REST API, you may have noticed that the core application has hundreds of settings that store a variety of different information. Lithium can add a custom setting for you that you can use to store a text value in a persistent manner. Once the setting has been added by Lithium, you can access it and update it like any other setting via the REST API or via custom context objects in FreeMarker.

     

    I would suggest filing a case via our Customer Case Portal so that our Support team can assist you with the next steps of having a new custom setting added to your community. Depending on the nature of your request, it may be necessary for our Professional Services team to gather and scope your requirements.

1 Reply

  • AdamN's avatar
    AdamN
    Khoros Oracle
    12 years ago

    Hi lorna,

     

    From what you're describing, I think a custom setting might work for your purposes. If you've ever tested out the settings calls in the REST API, you may have noticed that the core application has hundreds of settings that store a variety of different information. Lithium can add a custom setting for you that you can use to store a text value in a persistent manner. Once the setting has been added by Lithium, you can access it and update it like any other setting via the REST API or via custom context objects in FreeMarker.

     

    I would suggest filing a case via our Customer Case Portal so that our Support team can assist you with the next steps of having a new custom setting added to your community. Depending on the nature of your request, it may be necessary for our Professional Services team to gather and scope your requirements.