Skip to content

Instantly share code, notes, and snippets.

View jwohlfeil's full-sized avatar

Jan Wohlfeil jwohlfeil

View GitHub Profile
@jwohlfeil
jwohlfeil / 20-misc.ts
Created April 14, 2017 09:14
T3 - Hintergrund Bild aus Seiteneigenschaften.ts
# Hintergrund Bild aus Seiteneigenschaften
temp.bgimg = IMG_RESOURCE
temp.bgimg {
file {
import = uploads/media/
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
@jwohlfeil
jwohlfeil / T3 - Fluid layoutsRootPaths, partialsRootPaths, templateRootPaths überschreiben für Extension.ts
Last active April 13, 2017 06:09
T3 - Fluid layoutsRootPaths, partialsRootPaths, templateRootPaths überschreiben für Extension.ts
plugin.tx_news {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:news/Resources/Private/Templates/
1 = typo3conf/ext/d3ultimo/Resources/Private/news/Templates/
}
partialRootPaths >
partialRootPaths {
0 = EXT:news/Resources/Private/Partials/
<?php
require_once('app/Mage.php'); //Path to Magento
error_reporting(E_ALL);
ini_set("display_errors", 1);
umask(0);
Mage::app();
@jwohlfeil
jwohlfeil / Mage - CMS - Static Block to CMS Page.xml
Last active March 3, 2017 15:56
Mage - CMS - Static Block to CMS Page.xml
{{block type="cms/block" block_id="home-page-promo"}}
@jwohlfeil
jwohlfeil / Mage - Static Block XML.xml
Last active March 3, 2017 15:56
Mage - Static Block XML.xml
<block type="cms/block" name="myblockname" before="-">
<action method="setBlockId"><block_id>myblockid</block_id></action>
</block>
@jwohlfeil
jwohlfeil / Mage - Static Block Content.php
Last active March 3, 2017 15:56
Mage - Static Block Content.php
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('')->toHtml() ?>
@jwohlfeil
jwohlfeil / Mage2 - bin-magento indexer:reindex.sh
Last active February 14, 2017 14:43
Mage2 - bin-magento indexer:reindex.sh
bin/magento indexer:reindex
@jwohlfeil
jwohlfeil / Mage2 - bin-magento setup:upgrade.sh
Last active February 14, 2017 14:41
Mage2 - bin-magento setup:upgrade.sh
bin/magento setup:upgrade
bin/magento dev:source-theme:deploy
bin/magento deploy:mode:set developer