Why do replace strings work in Units but not in HTML Documents?
Hello,
An instructor is utilizing replace strings and noticed that they work in New Content Experience in a unit, but when the replace strings are added into an HTML document within the Unit, the replace string will get replaced with the text and will embed that into the code.
For example, if type the string {FirstName} in an HTML Document and click save and close, it will replace it with my first name as expected. The problem is that others will also see my first name because when I go back into edit it either in the editor or the source code, I notice that the string got replaced by the text of my name.
Can anyone explain why replace string work in some places like Units, but not others?
Thanks!
Answers
-
Hi Yildiz.N,
The replace strings work in those tools/content items where they are being dynamically generated and are not static as is a HTML document. When I say dynamic, the content is stored in a database and is then written or rendered on demand when presented to a user. In doing so the replace string is 'aware' of a user context and can dynamically write information into the tool/content item (hope that makes sense).
DIfferent tools in Brightspace support different replace strings. When creating content, you'll often see a link to, or information describing the replace strings you can use with that tool. The Community documentation also includes this information some of which is linked below:
Other useful resources available include on demand webinar recordings covering personalization of communications such as
Hope that helps!