Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Do you mean the content link?
If true, you can get through context service (can be mixed-in with your widget by: _ContentContextMixin class):
For example:
define([
"dijit/_Widget",
"epi-cms/_ContentContextMixin"
], function(
_Widget,
_ContentContextMixin
) {
return declare("Your widget name", [_Widget, _ContentContextMixin], {
contextChanged: function (context, callerData) {
this.inherited(arguments);
// TODO: Your code when context change
// Update dropdown data for instace!
}
});
});
Hope that help!
// Ha Bui
Hi,
We have developed a custom key value property using dojo. We'd like to extend this widget with a dropdown list for value that is aware of it's context. In this case we'd like to populate the dropdown with a call to an external database by providing the currentpage ID as a parameter to a rest service. Is this possible?