This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<layout version="0.1.0"> | |
<default> | |
<reference name="content"> | |
<block type="core/text" name="fix.console" as="fix.console"> | |
<action method="setText"> | |
<text><![CDATA[<script type="text/javascript"> | |
iframe = document.createElement('iframe'); | |
iframe.style.display = 'none'; | |
document.getElementsByTagName('body')[0].appendChild(iframe); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Magento Snippets # | |
## Download extension manually using pear/mage ## | |
Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/ | |
./pear download magento-community/Shipping_Agent | |
./mage download community Shipping_Agent | |
## Clear cache/reindex ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$installer = Mage::getResourceModel('catalog/setup', 'catalog_setup'); | |
if (!$installer->getAttributeId(Mage_Catalog_Model_Product::ENTITY, 'attribute_name')) { | |
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'attribute_name', array( // TABLE.COLUMN: DESCRIPTION: | |
'label' => 'Label', // eav_attribute.frontend_label admin input label | |
'group' => 'General', // (not a column) tab in product edit screen | |
'sort_order' => 0, // eav_entity_attribute.sort_order sort order in group | |
'backend' => 'module/class_name', // eav_attribute.backend_model backend clas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2012-2013 Andy Hausmann <ah@sota-studio.de>, sota studio | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is | |
* free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
"use strict"; | |
$.pluginName = function(el, options){ | |
var self = this; | |
self.$el = $(el); | |
self.el = el; | |
self.$el.data('pluginName', self); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TYPO3.Neos:SomeTag provides Meta Tag for the Google Webmaster Tools Site Verification | |
# | |
prototype(TYPO3.Neos:SomeTage) < prototype(TYPO3.TypoScript:Tag) { | |
tagName = 'meta' | |
attributes { | |
name = 'some-tag-name' | |
content = '' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- | |
name: 'Sitemap' | |
uriPattern: 'sitemap' | |
defaults: | |
'@package': 'My.Package' | |
'@controller': 'Sitemap' | |
'@action': 'index' | |
'@format': 'html' | |
appendExceedingArguments: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready( function() { | |
var isBootstrapEvent = false; | |
if (window.jQuery) { | |
var all = jQuery('*'); | |
jQuery.each(['hide.bs.dropdown', | |
'hide.bs.collapse', | |
'hide.bs.modal', | |
'hide.bs.tooltip', | |
'hide.bs.popover'], function(index, eventName) { | |
all.on(eventName, function( event ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{namespace ts=TYPO3\TypoScript\ViewHelpers} | |
{namespace bootstrap=TYPO3\Twitter\Bootstrap\ViewHelpers} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<f:section name="metadata"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</f:section> | |
<f:section name="stylesheets"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Create shorthand namespace for our site package name. | |
# It is available in all included typoscript files. | |
# | |
namespace: Site=TYPO3.NeosDemoTypo3Org | |
include: NodeTypes/* | |
/** | |
* Root TypoScript template for the Neos demo website |
OlderNewer