Skip to content

Instantly share code, notes, and snippets.

@Plou
Last active December 16, 2015 14:49
Show Gist options
  • Save Plou/5451895 to your computer and use it in GitHub Desktop.
Save Plou/5451895 to your computer and use it in GitHub Desktop.
Typoscript Snippets
<snippet>
<content><![CDATA[
${1:10} = COA
$1 {$7${2:
${3:10} = ${4:TEXT}
$3 {
$5
}}$6
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>coa</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.typoscript</scope>
</snippet>
<snippet>
<content><![CDATA[
[PIDinRootline = ${1:uid}]
$2
[end]
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>croot</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.typoscript</scope>
</snippet>
<snippet>
<content><![CDATA[
[globalVar = ${1:TSFE:id} = ${2:uid}]
$3
[end]
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cvar</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.typoscript</scope>
</snippet>
<snippet>
<content><![CDATA[
${1:10} = IMAGE
${1:10} {
file {
import.field = ${2:media}
import.wrap = ${3:uploads/media}
}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>image</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.typoscript</scope>
</snippet>
<snippet>
<content><![CDATA[
${1:10} = TEXT
${1:10} {
${2:value = }
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>text</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.typoscript</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment