Forum Discussion
Hi Leo,
If you wanted to purely use freemarker, there may a few different standard components you'd have to replace depending on to what extent you wanted to make replacements. I think the key one would be the message body (via the Forum Message Page). You'd have to use the env context object to get the message id of the message you're rendering, then make a REST API call to get the message body. Then you'd need to use the http.request context object to determine what the current hostname is, in conjunction with the freemarker replace built in to swap the text.
If you're just interested in replacing links, jQuery would make it pretty straightforward to do that on the fly.
Thanks Adam. jQuery may be the way to go; I'm just afraid that the user may see some strange flicker during the page load. I'll report once we have something working.
Related Content
- 2 years ago
- 3 years ago
- 2 years ago
- 3 years ago