title: Magento: How to use admin configforms in frontend?
body: <p>I have an extension which should give the users (logged in as an Admin in the magento backend) the ability to change some configs in the frontend area. I want to have a link in the frontend which loads the config area via ajax and gives the user the possibility to edit&amp;save this config in the loaded div. I want to use the magento backend forms for this so i don't have to code the forms myself. </p>
  
  <p>My current approach has the link on the pages and loads via ajax the correct backend page (e.g. System > Configuration > Design). For this approach I created a Controller which extends the Mage_Adminhtml_Controller_Action. This Controller get the params from the ajax request and uses an action (like the editAction of the class Mage_Adminhtml_System_ConfigController) to get the right config page in the backend.</p>
  
  <p>My Problems are:
  - showing only the correct Area (I just want the user to edit only the section "themes" under System > Configuration > Design) everything else should be not available... so how to remove all the information around this config section?</p>
  
  <ul>
  <li><p>The form needs the JS-variable Form_Key. How to get the current Form_Key (in the frontend)?</p></li>
  <li><p>After the ajax has loaded the content the form doesnt get initialized correctly. So if I'm trying to submit the form my firebug says "JS-Error: configForm is not defined". How to solve this form initialising ? Any ideas?</p></li>
  </ul>
  
  <p>I really hope anybody here can give me a hint how to solve this problems to get the backend config work in the frontend.</p>