AI OnAI Off
Hi Tevin
You could try something like this:
this.dialogContent = new LinkEditor({ modelType: this.metadata.additionalValues["modelType"], hiddenFields: ["text", "title", "target", "language"] });
Don't forget this.own(this.dialogContent); before creating the dialog.
Thanks, David!
I'm getting a console error of "cannot read property 'additionalValues' of undefined when I try that. Do I need to add something somewhere else in order to get it to work?
Hi Tevin
I tried this in debug and you can try using:
'episerver.cms.shell.ui.objectediting.internalmetadata.linkmodel' << quotes included
instead of
this.metadata.additionalValues["modelType"]
David
I have a custom dojo widget that displays a list of custom tags assigned to a page. When a user clicks a tag, I want to open a dialog box that shows the "create link" dialog.
Here's the code that I'm using to do that:
I can get the dialog box to come up correctly when I add static text to the "content" parameter, but it breaks with a console error when I try it like the above. The error that I get is that it "can't read properties of null." I'm thinking that LinkEditor needs to be preloaded with some parameters to fix this error. What are these parameters?