Please follow the steps:
- [In the widget] Include scala.js (please get the latest version from SCALA)
- [In the widget] Use Scala.getMetadataValue("MediaItem.Foo.Bar")
- [In Content Manager] Define media metadata “Foo.Bar” (System -> Media Metadata -> New)
- [In Content Manager] Assign the value in this widget's metadata
For example, if you have an RSS widget which takes a parameter called Url:
- Include scala.js
- Use Scala.getMetadataValue("MediaItem.RSS.Url")
- Define media metadata “RSS.Url” in ContentManager (it will automatically add MediaItem. as prefix)
- Assign the value in the widget's Metadata
P.S Please contact Scala to get your copy of Scala.js
Comments
0 comments
Article is closed for comments.