Skip to content

Instantly share code, notes, and snippets.

View sorenmalling's full-sized avatar

Søren Malling sorenmalling

View GitHub Profile
<?php
namespace Vendor\Application\Security\Authentication\Oauth\Provider;
abstract class AbstractOauthProvider extends AbstractProvider {
/**
* Oauth manager
*
* @var OauthManager
# Put into somewhere global
prototype(Sfi.Site:FixedWidthContainer) < prototype(T:Tag) {
tagName = 'div'
attributes.class = 'fixed-width'
}
# Here goes reusing
prototype(Sfi.Site:News) < prototype(Sfi.Site:FixedWithContainer) {
}
@sorenmalling
sorenmalling / commandline
Created September 17, 2015 08:45
Installing TYPO3 CMS 7.4 with composer and typo3_console
# Just read the help
soren@kevin  ~/Sites/typo3-hyttekort  ./typo3cms help install:setup
Alpha version of a setup command. Use with care and at your own risk!
COMMAND:
typo3_console:install:setup
USAGE:
/Users/soren/Sites/typo3-hyttekort/./typo3cms ./typo3cms install:setup [<options>]
@sorenmalling
sorenmalling / IncludeAssets.ts2
Last active August 29, 2015 14:24
Replacing TYPO3.TypoScript:Template with TYPO3.TypoScript:Array for body rendering
prototype(Vendor.Site:IncludeCss) < prototype(TYPO3.TypoScript:Tag) {
tagName = 'link'
attributes {
type = 'text/css'
rel = 'stylesheet'
href = TYPO3.TypoScript:ResourceUri
}
}
prototype(Vendor.Site:IncludeJs) < prototype(TYPO3.TypoScript:Tag) {
@sorenmalling
sorenmalling / ItemViewhelper.php
Created June 3, 2015 14:13
A link viewhelper that can add a "active" class to a link
<?php
namespace Vendor\Namespace\ViewHelpers\Navigation;
use TYPO3\Fluid\ViewHelpers\Link\ActionViewHelper;
use TYPO3\Flow\Mvc\ActionRequest;
class ItemViewHelper extends ActionViewHelper {
public function render($action, $arguments = array(), $controller = NULL, $package = NULL, $subpackage = NULL, $section = '', $format = '', array $additionalParams = array(), $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array(), $useParentRequest = FALSE, $absolute = TRUE) {
if ($action === NULL || $controller === NULL || $package === NULL) {
source 'https://rubygems.org'
gem 'sass', '~> 3.4.0'
gem 'compass', '1.0.0'
<?php
namespace Vendor\Project\Domain\Factory;
use Vendor\Project\Exception\AccountIdentifierAlreadyExistsException;
use TYPO3\Flow\Annotations as Flow;
use Vendor\Project\Domain\Model\User;
use TYPO3\Party\Domain\Model\ElectronicAddress;
@sorenmalling
sorenmalling / Index.html
Last active November 9, 2017 14:06 — forked from jsegars/Index.html
<mypackage:link.node node="/sites/mysite/mypage">Click Me!</mypackage:link.node>
@sorenmalling
sorenmalling / Settings.yaml
Created April 20, 2015 07:58
Pocketstore jsonview
Pocketstore:
Api:
view:
renderingConfigurations:
'store.show':
properties:
name:
property: 'name'
products:
property: 'products'
<?php
$GLOBALS['TCA']['tx_prisindeks_domain_model_index'] = array(
'ctrl' => $GLOBALS['TCA']['tx_prisindeks_domain_model_index']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'hidden, name, entries',
),
'types' => array(
'1' => array('showitem' => 'hidden;;1, --palette--;;1, entries'),
),