November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi Aniket,
Thanks for response.
Here is dojo script
define([
"dojo/_base/declare",
"epi/shell/command/_Command",
"epi-cms/widget/ContentReferences",
"epi/shell/widget/dialog/Dialog",
"epi/shell/TypeDescriptorManager",
"epi/i18n!epi/cms/nls/episerver.cms.widget.contentreferences"
],
function (
declare,
_Command,
ContentReferences,
Dialog,
TypeDescriptorManager) {
return declare([_Command], {
name: "ContentReferences",
label: "Content references",
tooltip: "Show content references",
iconClass: "epi-iconReferences",
canExecute: true,
_execute: function () {
var content = new ContentReferences({
model: {
contentData: this.model.contentData,
mode: "show"
}
});
content.startup();
var dialog = new Dialog({
defaultActionsVisible: false,
focusActionsOnLoad: true,
destroyOnHide: true,
dialogClass: "epi-dialog-contentReferences",
title: TypeDescriptorManager.getResourceValue(this.model.contentData.typeIdentifier, "references"),
content: content
});
dialog.definitionConsumer.add({
name: "close",
label: epi.resources.action.close,
action: dialog.onCancel
});
dialog.show();
var handle = content.on("viewReference", function () {
dialog.hide();
handle.remove();
});
}
});
});
when i checked in the consol this.model.contentdata is working properly, but in ContentRefrences.js
postMixInProperties: function () {
this.inherited(arguments);
this.store = this.model.getUpdatedStore(this.store);
},
in below function it get stuck, Is there something missing in below code
new ContentReferences({
model: {
contentData: this.model.contentData,
mode: "show"
}
});
content.startup();
Thanks,
Chandrakant H
What are the steps you do to get this error? Have you written a custom dojo widget or are you using something built in? I don't recognize showRelatedPagesCommand.js.
Hi,
I am getting following error when try to run dojo script
Uncaught TypeError: this.model.getUpdatedStore is not a function (dojo.js:15)
at Object.postMixInProperties (widgets.js:2)
at Object.create (widgets.js:2)
at Object.postscript (widgets.js:2)
at Object._19e (dojo.js:15)
at Object.postscript (widgets.js:2)
at new
at Object._execute (showRelatedPagesCommand.js:23)
at Object.execute (widgets.js:2)
at Object.onClick (widgets.js:2)
at Object.onItemClick (widgets.js:2)
postMixInProperties @ widgets.js:2
create @ widgets.js:2
postscript @ widgets.js:2
_19e @ dojo.js:15
postscript @ widgets.js:2
(anonymous) @ dojo.js:15
_execute @ showRelatedPagesCommand.js:23
execute @ widgets.js:2
onClick @ widgets.js:2
onItemClick @ widgets.js:2
(anonymous) @ widgets.js:2
(anonymous) @ dojo.js:15
(anonymous) @ widgets.js:2
does anyone know the root cause of this? Any idea?
Thanks,
Chandrakant H