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 git@github.com:castiron/CIC-PhpStorm-Live-Templates.git - Pull everything down:
git pull origin master
Currently there are four Live Templates in this bundle:
FlexformFluidFluidInlineTYPO3
Here's what's currently included in each template.
flexCheckGenerates a flexform checkbox field.flexDamGenerates a group field for selecting DAM records.flexForeignGenerate a select field with options form a foreign table that you specify.flexImageGenerate image upload field (not DAM aware).flexInputBasic text inputflexLinkGenerates a text input field with link wizard.flexOptionGenerates a select option.flexRepeatGenerates a repeating element container.flexRootGenerates a basic flexform structure.flexRteGenerates an RTE enabled text field.flexSelectGenerates a basic select field.flexSheetGenerates a flexform sheet.flexTextGenerates an input field.flexFalGenerates a FAL input field. Experimental.
f:aliasGenerates an alias viewhelper tagf:checkboxGenerates a form checkboxf:cObjGenerates a cObject viewhelper tagf:cropGenerates a crop format viewhelper tagf:currencyGenerates a currency format viewhelper tagf:dateGenerates a date format viewhelper tagf:debugGenerates a debug viewhelper tagf:errorsGenerates a for viewhelper iterating through form errors for a given propertyf:flashGenerates a flash viewhelper tagf:forGenerates fluid for each snippetf:formGenerates a form viewhelper tagf:gforGenerates a grouped for snippetf:hiddenGenerates a hidden field viewhelper tagf:htmlGenerates a HTML format viewhelper tagf:ifGenerates an if snippetf:ifelseGenerates an if snippet around then and else viewhelper tagsf:imageGenerates an image viewhelper tagf:linkEmailGenerates an email link viewhelper tagf:linkExteranlGenerates an external link viewhelper tagf:linkPageGenerates a page link viewhelper tagf:nl2brGenerates a nl2br viewhelper tagf:nsGenerates a Fluid namespace declarationf:numberGenerates a number format viewhelper tagf:passwordGenerates a password form field viewhelper tagf:radioGenerates a radio button form field viewhelper tagf:selectGenerates a select form field viewhelper tagf:submitGenerates a submit form field viewhelper tagf:textareaGenerates a textarea form field viewhelper tagf:textfieldGenerates a text form field viewhelper tagf:translateGenerates a translate viewhelper tagf:uploadGenerates an upload form field viewhelper tag
if:ifGenerates an inline fluid if snippetif:translateGenerates an inline translate viewhelper tag
injectGenerates an injectable extBase property and a corresponding inject methodt3debugPrints a TYPO3 debug statement, although, you really should be using xdebug if at all possible!ebdbPrints an ExtBase var dump message, which is useful for debugging recursive, heavily nested objectstcaDamMMCreates a TCA column configured for the DAM.tcaDateCreates a TCA date column.tcaLinkCreates a TCA input field, with link wizard.tcaTextGenerates a TCA text field.sqlSelectGenerates code needed for a direct SQL select query.sqlInsertGenerates code needed for a direct SQL insert query.sqlUpdateGenerates code needed for a direct SQL update query.ipmatchChecks if REMOTE_ADDR == the IP from specialbody.com.flexParseGenerates 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!