I got the dialog to launch by directly using the mgnlOpenDialog function.  Here 
is how I configured the page from which the dialog is spawned...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
[#assign cms=JspTaglibs["cms-taglib"]]
<html>
<head>
  <title>UCP Books</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link href="${this.request.contextPath}/.resources/admin-css/admin-all.css" 
type="text/css" rel="stylesheet" />

  <script type="text/javascript" 
src="${this.request.contextPath}/.magnolia/pages/javascript.js"><!-- 
--></script>
  <script type="text/javascript">
    function displayDialog()
    {
      if ( ! window.focus ) return true;

      var path = "${this.path}";
      var nodeCollection = null;
      var node = "${this.nodeName}";
      var paragraph = null;
      var repository = "${this.repository}";
      var dialogPage = ".magnolia/dialogs/author.html";
      mgnlOpenDialog( path, nodeCollection, node, paragraph, repository, 
dialogPage );
      return false;
    }
  </script>
</head>
<body id="mgnl" class="mgnlBgLight mgnlImportExport">
  <h2>
    ${this.messages.get("module.books.pages.AuthorDetailPage.header")}
    <span class="mgnlControlButton" onclick="displayDialog();">
      ${this.messages.get("module.books.pages.edit")}
    </span>
  </h2>

  <div class="pageFrame">${this.content}</div>
</body>
</html>

Rakesh

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to