title: Programmatically creating a CMS/Page in Magento
body: <p>I saw the following answer to the post <a href="https://stackoverflow.com/questions/4932652/where-are-magento-static-cms-blocks-stored">Where are Magento static CMS blocks stored?</a> regarding programatically using PHP generating cms/blocks in Magento.</p>
  
  <p>I changed the code to the following</p>
  
  <pre><code>$newBlock = Mage::getModel('cms/page')
        -&gt;setTitle('Test CMS Page Title')
        -&gt;setContent('Hello I\'m a new cms page.')
        -&gt;setIdentifier('this-is-the-page-url')
        -&gt;setIsActive(true)
        -&gt;save();
  </code></pre>
  
  <p>... and it works.  I see a new page show up in the CMS Pages area in the backend.  </p>
  
  <p>What I need to add to this is the ability to set the content of the other fields in the CMS/Page.  Namely:</p>
  
  <ul>
  <li>Layout (trying to set to 1 column) </li>
  <li>meta keyword </li>
  <li>meta description </li>
  </ul>
  
  <p>fields.  These fields are blank currently.  I so far haven't been able to figure this part out.  </p>
  
  <p>Thanks,</p>