Skip to content

Instantly share code, notes, and snippets.

@wikipeter
wikipeter / DateForm.html
Created Jul 11, 2016 — forked from koernchen02/DateForm.html
Problems with DateTime Timezones in Extbase and Fluid
View DateForm.html
{namespace as=Portachtzig\Asapp\ViewHelpers}
<div class="form-wrap white black-text">
<div class="row" xmlns:f="http://www.w3.org/1999/XSL/Transform">
<div class="col-sm-12">
<label for="draft">
<f:translate key="tx_asapp_domain_model_project.draft" />
</label><br />
<f:form.checkbox property="draft" value="1" /><br />
</div>
</div>
@wikipeter
wikipeter / rename_provider_extension_sql.md
Last active Nov 20, 2020
SQL migration for renaming a TYPO3 Provider Extension
View rename_provider_extension_sql.md
EXT:fluidcontent related migration
UPDATE tt_content
SET tx_fed_fcefile = REPLACE(tx_fed_fcefile, '[old_value]', '[new_value]')
WHERE tx_fed_fcefile LIKE '%[old_value]%';
EXT:fluidpages related migration
@wikipeter
wikipeter / FluxSettingsProviderForMyPlugin.ts
Last active Aug 29, 2015
TypoScript based flux settings for an FE plugin (esp. controllerActions)
View FluxSettingsProviderForMyPlugin.ts
plugin.tx_flux.providers {
myextension_myplugin {
tableName = tt_content
fieldName = pi_flexform
listType = myextension_myplugin
extensionKey = Vendor.MyPlugin
form {
fields {
switchableControllerActions {
label = Plugin Mode
View Example.html
{namespace vm=Vm\Vmtemplates\ViewHelpers}
<div class="navigation">
<vm:link.next newsItem="{newsItem}" settings="{settings}" class="news-next">
<span></span>
</vm:link.next>
<vm:link.prev newsItem="{newsItem}" settings="{settings}" class="news-prev">
<span></span>
</vm:link.prev>
</div>
@wikipeter
wikipeter / 0_reuse_code.js
Created Nov 14, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View languageswitch.php
<ul>
<?php foreach(c::get('lang.available') as $lang): ?>
<li<?php if($lang == c::get('lang.current')) echo ' class="active"' ?>><a href="<?php echo url($site->uri(), $lang) ?>"><?php echo $lang ?></a></li>
<?php endforeach ?>
</ul>
@wikipeter
wikipeter / gist:4117969
Created Nov 20, 2012 — forked from g3d/gist:2709563
Clean Install – Mountain Lion OS X 10.8 DP3