Skip to content

Instantly share code, notes, and snippets.

View cedricziel's full-sized avatar
🥸

Cedric Ziel cedricziel

🥸
View GitHub Profile
Create a Hidden Form Field named recipient
Define Recipient Email as: {f:cObject(typoscriptObjectPath:'lib.receiveremail')}
Define Recipient Name as: {f:cObject(typoscriptObjectPath:'lib.receivername')}
/**
* Init ICalendar Action
* Set Format to ICS
*/
public function initializeICalendarAction() {
$this->request->setFormat('ics');
}
/**
* action iCalendar
class OrganisationRepository extends AbstractWorldcomRepository {
/**
* Find closest matching Agency based on visitor's IP
*
* @param \Worldcom\CzielWorldcomBase\Domain\Model\Service $service
* @param int $limit The amount of data to be retreived
* @return \Worldcom\CzielWorldcomBase\Domain\Model\Organisation
*/
public function findClosestMatchingAgency(\Worldcom\CzielWorldcomBase\Domain\Model\Service $service, $limit = 1) {
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
@cedricziel
cedricziel / Partners.xml
Created September 16, 2013 10:39
Define a flexform for your plugin
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Behaviour</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<switchableControllerActions>
@cedricziel
cedricziel / gist:6672142
Created September 23, 2013 15:25
Table Mapping in Extbase
config.tx_extbase {
persistence {
classes {
Vendor\MyPackage\Domain\Model\Organisation {
mapping {
columns {
tstamp.mapOnProperty = tstamp
hidden.mapOnProperty = hidden
crdate.mapOnProperty = crdate
cruser_id.mapOnProperty = cruserId
@cedricziel
cedricziel / dabblet.css
Created October 5, 2013 13:49
How to make 3-corner-rounded triangle in CSS (SO)
/**
* How to make 3-corner-rounded triangle in CSS (SO)
* http://stackoverflow.com/q/14446677/1397351
*/
.triangle,
.triangle:before {
width: 10em;
height: 10em;
position: relative;
background: orange;
@cedricziel
cedricziel / dnsmasq.conf
Created October 24, 2013 12:23
Wildcard vhosts with nginx on a dev machine 1. Place wildcard.conf in /etc/nginx/sites-enabled or symlink it here 2. Place typo3 in /etc/nginx 3. Adjust the paths. I prefer to hold anything inside ~/public_html (needs adjustments. wire up www-data [or your systems flavor of that) and your current user group. Also let your php-fpm pool use your u…
address=/t3cmsdev/127.0.0.1
address=/l/127.0.0.1
address=/silex/127.0.0.1
address=/symfony2/127.0.0.1
address=/dev/127.0.0.1
@cedricziel
cedricziel / DlrgSeminareConfigurationProvider.php
Created November 9, 2013 11:40
FluxForm Provider for Plugin forms - with fluid.
<?php
/**
* @package dlrg_seminare
* @subpackage Provider/Configuration
*/
namespace DLRG\DlrgSeminare\Provider\Configuration;
class DlrgSeminareConfigurationProvider
@cedricziel
cedricziel / Form.txt
Created November 11, 2013 12:23
TYPO3 Form config. Paste this into the form ext's config field.
class = form-horizontal
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 0
postProcessor {
1 = mail
1 {
recipientEmail = foo@bar.com
senderEmail = test@test.com
@cedricziel
cedricziel / deflate.conf
Created November 12, 2013 17:37
Remove faulty deflate directives for mod_deflate
<IfModule mod_deflate.c>
# these are known to be safe with MSIE 6
#AddOutputFilterByType DEFLATE text/html text/plain text/xml
# everything else may cause problems with MSIE 6
#AddOutputFilterByType DEFLATE text/css
#AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
#AddOutputFilterByType DEFLATE application/rss+xml
</IfModule>