LIGHTWEIGHT TEMPLATES
Below you can find frequently asked questions about Lightweight Templates, covering topics such as migration from Classic Templates, localization, CSS customization, template sizing, click tracking, JavaScript callbacks, and programmatic rendering.
-
Are There Practical Examples for Sizing of Modal Lightweight Templates? -
Can I Access Linked Term Custom Data in a Lightweight Template? -
Can tp.offer.show() and tp.template.show() Be Used to Show Lightweight Templates? -
Do JavaScript Callbacks Work for Lightweight Templates? -
How Do I Override the CSS of Built-in Lightweight Template Components Without Using !important? -
How Do You Localize Items Such as term.name, term.displayLine, and term.description? -
How Should Default CSS Variables in Lightweight Templates Be Updated? -
Is Context Availability Dependent on the Encapsulation Type? -
Is there an equivalent to tp.template.close() for Lightweight Templates that can be triggered from a RunJS card? -
When Will Classic Templates Be Deprecated? -
How does the 'Allow user to close modal' checkbox work in Lightweight Templates? -
How does the JS tab interact with the JSX tab? -
Which variables from the JS tab can the JSX see, and how do I declare them? -
What is ref and how do I use it? -
Are content fields substituted in the JS tab too? -
Can I use the classic external-event and external-event- attributes for event tracking? -
Why do some template buttons in Live Preview work while others don't?