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
<html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers" xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"> | |
<f:layout name="Content"/> | |
<f:section name="Configuration"> | |
<flux:form id="carousel" options="{Fluidcontent:{sorting:1}}"> | |
<flux:form.option.icon>EXT:theme_minimal/Resources/Public/Icons/Plugin.png</flux:form.option.icon> | |
<flux:grid> | |
<flux:grid.row> | |
<flux:grid.column name="content" /> |
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 | |
namespace AppZap\Tripshop\Persistence; | |
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement; | |
class QueryResult extends \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult | |
{ | |
/** | |
* Overwrites the original implementation of Extbase | |
* |
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
<FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp|gitignore)$"> | |
Order allow,deny | |
Deny from all | |
Satisfy All | |
</FilesMatch> | |
<FilesMatch "(^ChangeLog|INSTALL\.md|LICENSE\.txt|NEWS.md|README.md|_\.htaccess)$"> | |
Order deny,allow | |
Deny from all | |
Satisfy All | |
</FilesMatch> |
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 | |
namespace AppZap\MyExt\Type; | |
use TYPO3\CMS\Core\Type\TypeInterface; | |
/** | |
* In our application we have fields that store time intervals as minutes in the database. | |
* In our code we want proper DateInterval objects, so we use a TypeInterface to let extbase take care of the conversion. | |
* | |
* Usage example on a model property: |
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 | |
namespace Smichaelsen\Gist\Service; | |
use TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface; | |
use TYPO3\CMS\Extbase\Error\Result; | |
use TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator; | |
use TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface; | |
/** | |
* Provides stand alone validation for domain objects. |
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 | |
namespace Smichaelsen\Gist\Service; | |
use TYPO3\CMS\Extbase\Persistence\ObjectStorage; | |
use TYPO3\CMS\Extbase\Reflection\ObjectAccess; | |
class ObjectStorageService | |
{ | |
/** |
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
vagrantfile: | |
target: local | |
vm: | |
box: puphpet/debian75-x64 | |
box_url: puphpet/debian75-x64 | |
hostname: '' | |
memory: '512' | |
cpus: '1' | |
chosen_provider: parallels | |
box_version: '' |
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
// this script displays the running balance for each day in the transaction list of your number26 bank account | |
// attention: you should not execute any random code you found in the internet on your online banking! | |
var getBalance = function(string) { | |
var amountParts = string.split(','); | |
return parseInt(amountParts[0]) + parseInt(amountParts[1]) / 100; | |
}; | |
var getDayOverviewNodes = function() { | |
return $('.activities').find('.node.delim'); |
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 A | |
{ | |
/** | |
* In TYPO3 (Extbase) you can use a simple @inject annotation to get an instance of the class specified with | |
* the @var annotation ready-to-use when your class is instanciated. | |
* However you're discouraged to use that variant for performance reasons. | |
* |
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 | |
namespace Smichaelsen\Gist\Database; | |
/** | |
* @see https://gist.github.com/smichaelsen/4e99a0d19d81a42caeac | |
* As of TYPO3 7 it's not possible in TCA to define bidirectional MM relations with each side of | |
* the relation being the same field. (e.g. "related news"). | |
* | |
* As a fix this extension of the relation handler just stores the relation in both ways into the | |
* MM table when it detects a MM relation with both sides being the same field. |