We ignore everything in the repo except for the files we care about (see .gitignore). That way you can install rando unrelated templates if you need to, and they won't be tracked here. The major downside to this is that you will not be able to track your other live templates in a git repo. If you need to do that, you're better off forking to your own repo, and keeping this one as an upstream.
cd ~/Library/Preferences/WebIde60/templates
- Now initialize the a repo:
git init
- Add the remote repo:
git remote add origin [email protected]:castiron/CIC-PhpStorm-Live-Templates.git
- Pull everything down:
git pull origin master
Currently there are four Live Templates in this bundle:
Flexform
Fluid
FluidInline
TYPO3
Here's what's currently included in each template.
flexCheck
Generates a flexform checkbox field.flexDam
Generates a group field for selecting DAM records.flexForeign
Generate a select field with options form a foreign table that you specify.flexImage
Generate image upload field (not DAM aware).flexInput
Basic text inputflexLink
Generates a text input field with link wizard.flexOption
Generates a select option.flexRepeat
Generates a repeating element container.flexRoot
Generates a basic flexform structure.flexRte
Generates an RTE enabled text field.flexSelect
Generates a basic select field.flexSheet
Generates a flexform sheet.flexText
Generates an input field.flexFal
Generates a FAL input field. Experimental.
f:alias
Generates an alias viewhelper tagf:checkbox
Generates a form checkboxf:cObj
Generates a cObject viewhelper tagf:crop
Generates a crop format viewhelper tagf:currency
Generates a currency format viewhelper tagf:date
Generates a date format viewhelper tagf:debug
Generates a debug viewhelper tagf:errors
Generates a for viewhelper iterating through form errors for a given propertyf:flash
Generates a flash viewhelper tagf:for
Generates fluid for each snippetf:form
Generates a form viewhelper tagf:gfor
Generates a grouped for snippetf:hidden
Generates a hidden field viewhelper tagf:html
Generates a HTML format viewhelper tagf:if
Generates an if snippetf:ifelse
Generates an if snippet around then and else viewhelper tagsf:image
Generates an image viewhelper tagf:linkEmail
Generates an email link viewhelper tagf:linkExteranl
Generates an external link viewhelper tagf:linkPage
Generates a page link viewhelper tagf:nl2br
Generates a nl2br viewhelper tagf:ns
Generates a Fluid namespace declarationf:number
Generates a number format viewhelper tagf:password
Generates a password form field viewhelper tagf:radio
Generates a radio button form field viewhelper tagf:select
Generates a select form field viewhelper tagf:submit
Generates a submit form field viewhelper tagf:textarea
Generates a textarea form field viewhelper tagf:textfield
Generates a text form field viewhelper tagf:translate
Generates a translate viewhelper tagf:upload
Generates an upload form field viewhelper tag
if:if
Generates an inline fluid if snippetif:translate
Generates an inline translate viewhelper tag
inject
Generates an injectable extBase property and a corresponding inject methodt3debug
Prints a TYPO3 debug statement, although, you really should be using xdebug if at all possible!ebdb
Prints an ExtBase var dump message, which is useful for debugging recursive, heavily nested objectstcaDamMM
Creates a TCA column configured for the DAM.tcaDate
Creates a TCA date column.tcaLink
Creates a TCA input field, with link wizard.tcaText
Generates a TCA text field.sqlSelect
Generates code needed for a direct SQL select query.sqlInsert
Generates code needed for a direct SQL insert query.sqlUpdate
Generates code needed for a direct SQL update query.ipmatch
Checks if REMOTE_ADDR == the IP from specialbody.com.flexParse
Generates boilerplate code to parse a flexform string that is stored in a variable (TYPO3 6+ I think)
Add snippets to this! Make existing snippets better!