Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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,