RSS

03 Oct

For adding a custom browse field for uploading image of type ICO, PNG, GIF, JPG, JPEG, APNG, SVG add the following snippet of code…

<shortcut1_icon translate="label comment">
<label>Favicon Icon</label>
<comment>Allowed file types: ICO, PNG, GIF, JPG, JPEG, APNG, SVG. Not all browsers support all these formats!</comment>
<frontend_type>image</frontend_type>
<backend_model>adminhtml/system_config_backend_image_favicon</backend_model>
<base_url type="media" scope_info="1">favicon</base_url>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</shortcut1_icon>

at the following location..

app/code/core/mage/page/etc/system.xml

You can get the following file name in frontend as follws

Mage::getStoreConfig('design/head/shortcut1_icon');

by this way you can see a browse field in admin area at following location…

admin > system > configuration > General > design > HTML Head
 
Leave a comment

Posted by on Oct 3, 2013 in PHP

 

Tags: , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: