Skip to content

Instantly share code, notes, and snippets.

@dangtrinhtran
Last active March 2, 2017 03:03
Show Gist options
  • Select an option

  • Save dangtrinhtran/fae7984d96d0e134d013 to your computer and use it in GitHub Desktop.

Select an option

Save dangtrinhtran/fae7984d96d0e134d013 to your computer and use it in GitHub Desktop.
Some of the standard configuration for Magento
<?xml version="1.0"?>
<config>
<adminhtml>
<cms>
<browser>
<extensions>
<media_allowed>
<mp4>1</mp4>
</media_allowed>
</extensions>
</browser>
</cms>
</adminhtml>
</config>
SSL: {{store direct_url="contacts" _secure=1}}
Path in configuration: {{config path='accessories_config/configuration/video_html5_press_page_two'}}
For example: href="{{media url='videos'}}/{{config path='accessories_config/configuration/video_html5_press_page_two'}}"
Remove last trailing slash from magento url:
- In *.phtml
<?php echo Mage::getUrl('', array('_direct' => 'hairproducts.html', '_query'=>'manufacturer=412')); ?>
- In a block/page content
{{store _direct='hairproducts.html' _query="manufacturer=412"}}
@hyhoocchan

Copy link
Copy Markdown

Ngon vãi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment