Forum Discussion

deepak's avatar
13 years ago

Custom messages on posts

Is there any possible solution to display custom messages on the blog posts, message posts etc.

 

  • AdamN's avatar
    AdamN
    Khoros Oracle

    Hi deepak,

     

    Could you please elaborate on what you mean by "custom messages" and explain what you're trying to accomplish? What type of content did you have in mind for this custom message? Do you want the content to be specific to each individual post, or is it the same for all threads in a board/blog?

    • deepak's avatar
      deepak
      Ace

      Dear AdamN,

       

      Sorry for the late reply. Actually the implementation was dropped. But would love to know if it is possible. May be we could implement the same for some other community. The following is my requirement.

       

      We have replaced the escalate button with our custom page. So when the escalate button is clicked on the message it is redirected to a custom page. In that custom page we have a button which when clicked makes some calls to external entity and returns some text. If all went well I want to display the text with success message in the previous page (i.e) message page where the escalate button is available from where the message was escalated.

       

      Thanks in Advance.

      • AdamN's avatar
        AdamN
        Khoros Oracle

        Hi deepak,

         

        One approach you could consider would be the use of a query string parameter. For example, when you redirect to the thread page, you could append a query string variable and set the value to indicate success. Then in your component on the thread page, you could have a component that reads the value of that variable. If the value is as desired, you can show the proper messaging in your custom component. Otherwise, you can have the component display nothing.

         

        You can get the details of the request URL and other request details using the http.request context object:

        http://lithosphere.lithium.com/t5/Developers-Knowledge-Base/Context-objects-for-custom-components-http-request/ta-p/9323