Hello Daniel,
Regrettably, this is currently not supported. In order to display some kind of popup window you will need to modify the
ReloadMenu() method in the following file:
~\CMSModules\Content\Controls\EditMenu.ascx.cs. In the code you can get the current document and display popup window based on the
NodeClassName when the button
Publish is clicked.
So, for example, you could use the following code:
ORIGINAL CODE (line 819):
approveItem.JavascriptCommand = FunctionsPrefix + "Approve(" + NodeID + ");";
NEW CODE:
CMS.TreeEngine.TreeNode node = null;
UserInfo ui = UserInfoProvider.GetUserInfo("administrator");
CMS.TreeEngine.TreeProvider tree = new CMS.TreeEngine.TreeProvider(ui);
node = tree.SelectSingleNode(NodeID);
if (node.NodeClassName == "CMS.News")
{
approveItem.JavascriptCommand = "if(confirm('CMS.News - Are you sure everything is correct?')== false) return false;" + FunctionsPrefix + "Approve(" + NodeID + ");";
}
else if (node.NodeClassName == "CMS.Article")
{
approveItem.JavascriptCommand = "if(confirm('CMS.Article - Are you sure everything is correct?')== false) return false;" + FunctionsPrefix + "Approve(" + NodeID + ");";
}
else
{
approveItem.JavascriptCommand = FunctionsPrefix + "Approve(" + NodeID + ");";
}
This code should ensure displaying two different popup windows based on the
ClassName of the current document (CMS.News vs CMS.Article).
Best regards,
Michal Legen