title: Magento configuration popup window - where should html file go in module hierarchy?
body: <p>In my module config, I have a button. When that button is clicked I pop up a window that gathers some more input. That file is just an html file, but where should it live in the directory structure of the module?</p>
  
  <p>To give a bit more info - just to see something working, I defined my field as follows:</p>
  
  <pre><code>&lt;button_url_test_window_open&gt;&lt;![CDATA[/px.html]]&gt;&lt;/button_url_test_window_open&gt;
  &lt;frontend_model&gt;mymodule/adminhtml_system_config_testWindowOpenDialog&lt;/frontend_model&gt;
  </code></pre>
  
  <p>and I put the px.html file in my htdocs/magento folder. When I click the button it results in /px.html being opened, but that doesn't seem right. I'm not sure how to word the question, but I feel I should be doing something more like 'open the file called px.html for mymodule' and magento would then look in the right place. Sorry about the terminology, I'm still getting to grips with Magento/PHP/Apache.</p>
  
  <p>Just to complete the picture of what I currently have, the frontend_model block is:</p>
  
  <pre><code>protected function _prepareLayout()
  {
      parent::_prepareLayout();
      if (!$this-&gt;getTemplate()) {
          $this-&gt;setTemplate('mypackage/system/config/test_window_open_dialog.phtml');
      }
      return $this;
  }
  
  public function render(Varien_Data_Form_Element_Abstract $element)
  {
      $element-&gt;unsScope()-&gt;unsCanUseWebsiteValue()-&gt;unsCanUseDefaultValue();
      return parent::render($element);
  }
  
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
  {
      $originalData = $element-&gt;getOriginalData();
      $this-&gt;addData(array(
          'button_label_test_window_open' =&gt; Mage::helper('mymodule')-&gt;__($originalData['button_label_test_window_open']),
          'button_url_test_window_open'   =&gt; $originalData['button_url_test_window_open'],
          'html_id' =&gt; $element-&gt;getHtmlId(),
      ));
      return $this-&gt;_toHtml();
  }
  </code></pre>
  
  <p>and the test_window_open_dialog.phtml file contains:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;button style="" onclick="javascript:window.open('&lt;?php echo $this-&gt;getButtonUrlTestWindowOpen()?&gt;', 'testing','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=100, top=100, width=600, height=470'); return false;" class="scalable" type="button" id="&lt;?php echo $this-&gt;getHtmlId() ?&gt;"&gt;
                  &lt;span&gt;&lt;?php echo $this-&gt;escapeHtml($this-&gt;getButtonLabelTestWindowOpen()); ?&gt;&lt;/span&gt;
              &lt;/button&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>