This file contains hidden or 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 | |
class Tx_Polarmedia_Controller_MediaController extends Tx_Extbase_MVC_Controller_ActionController { | |
/** | |
* @var defaultViewObjectName use custom extended Tx_Fluid_View_TemplateView | |
*/ | |
protected $defaultViewObjectName = 'Tx_Pnutility_View_VariantView'; | |
public function teaserAction() { | |
$variant = $this->settings['variant']); // or anything else(userState...) |
This file contains hidden or 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
<T3DataStructure> | |
<meta> | |
<langDisable>1</langDisable> | |
</meta> | |
<sheets> | |
<sDEF> | |
<ROOT> | |
<TCEforms> | |
<sheetTitle>General</sheetTitle> | |
</TCEforms> |
This file contains hidden or 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
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1 | |
aptitude install -y mysql-server libmysqlclient-dev | |
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git | |
adduser --disabled-login --gecos 'gitlab system' gitlab | |
usermod -a -G git gitlab | |
su - gitlab | |
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa | |
aptitude install gitolite | |
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub | |
su - git |
This file contains hidden or 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
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1 | |
aptitude install -y mysql-server libmysqlclient-dev | |
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git | |
adduser --disabled-login --gecos 'gitlab system' gitlab | |
usermod -a -G git gitlab | |
su - gitlab | |
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa | |
aptitude install gitolite | |
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub | |
su - git |
This file contains hidden or 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 | |
//Alias long namespaces to use shorter ones. | |
use \TYPO3\CMS\Core as Core; | |
use \TYPO3\CMS\Extbase\Utility as Utility; | |
use \TYPO3\CMS\Frontend as Frontend; | |
#$a = require_once(Core\Utility\ExtensionManagementUtility::extPath('np_viewer')); | |
/* INITIALIZE */ | |
// Basic TSFE Setup - get all the Page data you may need. |
This file contains hidden or 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
1. in ext_localconf.php: | |
$TYPO3_CONF_VARS['FE']['eID_include']['bar'] = 'EXT:foo/lib/class.tx_foo.php'; | |
2. in lib/class.foobar.php | |
<?php | |
require_once(PATH_tslib.'class.tslib_pibase.php'); | |
$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1; | |
class tx_foobar extends tslib_pibase { | |
var $exclude = array('tt_news' => array(0)); |