In this Blog I written about to set the Meta title field inside the CMS Page.
Here, Some steps need to follow for Meta Title Field
1) Open File Meta.php
Location = /app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
2) Copy - Paste this code after
$fieldset = $form->addFieldset('meta_fieldset', array('legend' => Mage::helper('cms')->__('Meta Data'), 'class' => 'fieldset-wide'));
/*Copy*/
$fieldset->addField('meta_title', 'text', array(
'name' => 'meta_title',
'label' => Mage::helper('cms')->__('Title),
'title' => Mage::helper('cms')->__('Meta Title'),
'disabled' => $isElementDisabled
));
3) Open Database - Go to table - cms_page
4) write this query
ALTER TABLE `cms_page` ADD `meta_title` VARCHAR(100) NOT NULL AFTER `root_template`;
Now, Check any CMS page in admin side !!
Magento
Here, Some steps need to follow for Meta Title Field
1) Open File Meta.php
Location = /app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
2) Copy - Paste this code after
$fieldset = $form->addFieldset('meta_fieldset', array('legend' => Mage::helper('cms')->__('Meta Data'), 'class' => 'fieldset-wide'));
/*Copy*/
$fieldset->addField('meta_title', 'text', array(
'name' => 'meta_title',
'label' => Mage::helper('cms')->__('Title),
'title' => Mage::helper('cms')->__('Meta Title'),
'disabled' => $isElementDisabled
));
3) Open Database - Go to table - cms_page
4) write this query
ALTER TABLE `cms_page` ADD `meta_title` VARCHAR(100) NOT NULL AFTER `root_template`;
Now, Check any CMS page in admin side !!
No comments:
Post a Comment