In code/core/Mage/Page/etc/system.xml
you will find the configuration that Magento reads to show those fields, for example the "Small Logo Image src" is a field called logo_src_small
. The needed is a module that will tell Magento about:
The extra field in the admin panel under header.
<config>
<sections>
<design>
<groups>
<header>
<fields>
<new_field translate="label">
<label>New Field</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</new_field>
</fields>
</header>
</groups>
</design>
</section>
</config>
Rewrite the block class code/core/Mage/Page/Block/Html/Header.php
so you can add the method that will expose the new field.
$this->getNewField()
where getNewField() is the method you have in the class we overridden in point 2.A couple of links to help you start:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments