Quick Reference Guide for creating new attributes via an installer script for EAV and flat table entity types.
- Image
- Yes/No
- Select
- WYSIWYG
- [Default Values Reference](https://gist.github.com/dfelton/8ca84c94ee0b57e346a3e7469d814214#file-
| <?php | |
| // Just add the following methods inside your existing resource collection class. | |
| class ModuleNamespace_ModuleName_Model_Resource_EntityName_Collection | |
| extends Mage_Core_Model_Resource_Db_Collection_Abstract | |
| { | |
| /** | |
| * Filters the collection to only include records within X miles of a specified | |
| * latitude and longitude coordinates. | |
| * | |
| * Example (radius unit: mailes): |
Quick Reference Guide for creating new attributes via an installer script for EAV and flat table entity types.
| Each file below refers to the layout handle it may typically apply to. |
| # Google Image Crawler Setup | |
| User-agent: Googlebot-Image | |
| Disallow: | |
| # Crawlers Setup | |
| User-agent: * | |
| # Directories | |
| Disallow: /app/ | |
| Disallow: /dev/ |
| ## | |
| # Magento stuff. | |
| ## | |
| downloader/.cache/* | |
| downloader/cache.cfg | |
| downloader/connect.cfg | |
| maintenance.flag | |
| media/* | |
| media/** | |
| var/* |
| <?php | |
| /** | |
| * Abstract shell class for non-magento sites. | |
| * | |
| * @category FirstScribe | |
| * @package FirstScribe_Shell | |
| * @author Darren Felton | |
| */ | |
| abstract class FirstScribe_Shell_Abstract | |
| { |
Dependencies:
Make sure the Tinify library is within PHP's include path.
| ############################################ | |
| ## Disallow PHP scripts in /media/ and /js/ | |
| location ^~ /media/ { | |
| location ~ \.php$ { | |
| return 403; | |
| } | |
| try_files $uri $uri/ =404; | |
| expires 30d; | |
| } | |
| location ^~ /js/ { |
All installer scripts are intended to be ran from {magentoInstallationDir}/shell/install/
##MS-DOS