title: Saving custom attribute value for category in magento
body: <p>I have been trying to create an attribute for the categories in magento at the backend through programmatically. So, I followed steps in <a href="http://www.hesselbom.net/magento-custom-attributes-with-selectbox" rel="nofollow">http://www.hesselbom.net/magento-custom-attributes-with-selectbox</a> and it works perfectly and even I can able to save the selected values. Whereas, if I try creating a text box attribute, the values is not getting saved. Can anyone guide me how to do this?</p>
  
  <p>Following is my code.</p>
  
  <pre><code>$installer-&gt;addAttribute('catalog_category', 'custom_textfield', array(
  'type' =&gt; 'varchar', 
  'label' =&gt; 'Custom field', 
  'input' =&gt; 'text', 
  'global' =&gt; Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
  'visible' =&gt; TRUE,
  'required' =&gt; FALSE,
  'default' =&gt; ''
  ));
  
  $attributeId = $installer-&gt;getAttributeId($entityTypeId, 'custom_textfield'); 
  </code></pre>
  
  <p>I have also updated the version in the config file accordingly. </p>