Is it possible to access CurrentPage ID from dojo widget



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?

Jun 13, 2014 13:42

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:




], function(



) {

    return declare("Your widget name", [_Widget, _ContentContextMixin], {

        contextChanged: function (context, callerData) {

            // TODO: Your code when context change

            // Update dropdown data for instace!




Hope that help!

// Ha Bui

Jun 16, 2014 9:08

Thank you Ha Bui!

Yes that was the soloution we were looking for.


Jun 16, 2014 9:22

Is it possible to get a particular episerver property id on a page without using currentPage option. Is it possible to get the id by dojo framework ?

Edited, Jan 01, 2016 13:13
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.