This file contains 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
Even though it is done a lot (we have caught ourselves here) it is really bad practice to have "delete" links in an application. | |
Per definition crawlers (including search engines) are allowed to follow links and the only reason that this doesn't end up in loss of data, is because those delete links are usually behind a login.. but imagine a delete link on a wiki. | |
Following the notion of "safe requests" will us allow to do great optimizations in the future such as: | |
* Running persistence in "readonly" mode for GET | |
* Partly disable validation for GET | |
* No CSRF hassle | |
* *Smarter caching* of GET requests |
This file contains 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
TYPO3: | |
Flow: | |
persistence: | |
backendOptions: | |
host: %PAAS_HOST% | |
dbname: %PAAS_DB% | |
user: %PAAS_USER% | |
password: %PAAS_PASSWORD% |
This file contains 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
--- a/helper.php | |
+++ b/helper.php | |
@@ -149,7 +149,7 @@ | |
$item->classe .= ' deeper'; | |
} | |
- if ($item->parent) { | |
+ if ($item->parent && $item->level != $end) { | |
if ($params->get('layout', 'default') != '_:flatlist' && $item->level != $end) | |
$item->classe .= ' parent'; |
This file contains 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
- | |
name: 'Home' | |
uriPattern: '' | |
defaults: | |
'@package': 'Famelo.Brain' | |
'@controller': 'Standard' | |
'@action': 'index' | |
'@format': 'html' | |
appendExceedingArguments: true |
This file contains 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
- | |
requestFilter: 'isPackage("Package1.Features")' | |
options: | |
layoutRootPathPattern: resource://Famelo.ADU/Private/Layouts/ | |
templatePathAndFilename: resource://Famelo.ADU/Private/Templates/Features/Index.html |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript"> | |
window.onresize = function(){ | |
var agent = navigator.userAgent; | |
var current_width = window.innerWidth; | |
var html = document.getElementsByTagName('html')[0]; | |
if (agent.match(/Android.*Mobile|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) { |
This file contains 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 | |
/** | |
* @Flow\Inject | |
* @var \TYPO3\Flow\Mvc\Routing\Router | |
*/ | |
protected $router; | |
function getRoute($request) { | |
$this->router->route($request->getHttpRequest()); | |
$route = $this->router->getLastMatchedRoute(); |
This file contains 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
<ul class="list-group"> | |
<f:for each="{files}" as="file"> | |
<li class="list-group-item"> | |
<a href="{file.publicUrl}" > | |
<img src="typo3/gfx/fileicons/{file.extension}.gif" /> | |
{file.name} | |
</a> | |
</li> | |
</f:for> | |
</ul> |
This file contains 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
alias ..='cd ../../' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
alias .....='cd ../../../../../' | |
alias ......='cd ../../../../../../' |