I'm creating a GUI Extension with the Alchemy4Tridion framework and want to open a popup. The problem is the popup file is installed in assets/popup.html
by Alchemyand not assets/views/popup.html
. How do I get the file to be deployed to the /assets/views/
folder?
My file structure is /Static/Scripts/Command.js
and /Static/Views/popup.html
. In the Views
folder I have a popup.html
file.
In my ResourceGroup.cs
file I have the following:
AttachToView("popup.html");
Dependencies.AddAlchemyCore();
In the Commands.js
file, execute function I use the following to open the popup:
var itemId = selection.getItem(0);
var url = "${ViewsUrl}popup.html?item=" + itemId,
popup = $popup.create(url, "menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=405,height=180", null);
popup.open();