Forum Discussion

david-mcgurrin's avatar
6 years ago

Post Success Page links

Hey folks! 

Wondering how to go about adding links on the post confirmation page, similar to how it is done on Lithium.

Would it require some JS to store the location of the forum board or is there a simpler solution?

Any tips would be appreciated! 

 

4 Replies

  • david-mcgurrin's avatar
    david-mcgurrin
    Helper
    6 years ago

    Parshant

    Thanks so much for getting back to me! I wasn't specific enough, I am able to edit the "Post Success Page" page type but it is these "Click here.." links in particular that I was wondering about.

    None of the default components seem to do the trick:

    So I'm thinking of building a custom component. Is there a way in freemarker to have a link to "return to the comment"  for example?

  • Parshant's avatar
    Parshant
    Boss
    6 years ago

    david-mcgurrin,

    Yes you have to create your own custom component for this and add that on PostSuccessPage.quilt.

    On post success page you will get url and that would looks like below:

    https://lithosphere.lithium.com/t5/forums/postsuccesspage/board-id/[board-id]/message-id/[message-id]

    You can fetch the "message-id" and "board-id" from URL. To do that I have explained in my post here, and using the same you can fetch these id's.

    After fetching the message-id you can make it for your use.