London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
define([
"dojo/_base/declare"
"epi/shell/_ContextMixin"
], function (
declare,
_ContextMixin
) {
return declare("xyz",
[_ContextMixin], {
contextChanged: function (ctx, callerData) {
//Current Context
this.context = ctx;
},
context: null
});
});
Regards
/K
Hi,
Thank for reply but the system do not run into contextChanged function, so they cannot assign ctx to this.context.
Edited: this function work in page not in block. This custom property I created in a block, so this function doesn't work. How I can get current site root of a block or site assets root?
Hi,
I create a custom property that call "Image Gallery" and use "contentSelectorDialog" to select image content, but the problem is missing "For this site" folder and I want to include it into this.
Here is part of the code where to display dialog.
I think there is some way to add current site start page in to this.roots. But I don't know how to get current page. Can anyone can help me with this?
Thank in advance,