[TYPO3-mvc] Fluid code templates for Netbeans IDE

Alex Bailey vile at planet-generals.de
Thu May 20 16:52:23 CEST 2010


Hey guys,

I've just wanted to share something with you which I hope some may find 
helpfull. I've created codetemplates for the fluid viewhelpers and 
decided to release them to the community, just a little thankyou from me 
for the great help I get here. I work alot with extbase and luid (most 
of my extension development) and for me writing fluid tags all the time 
feels really clunky, having to write something like:

<f:if condition="{condition}">
     <f:then>

     </f:then
     <f:else>

     </f:else>
</f:if>

just annoys me. Id rater write:

ife press tab ->

<f:if condition="{condition}">
     <f:then>

     </f:then
     <f:else>

     </f:else>
</f:if>

It works just like regular code templates except its fluid :).
Ive recreated mostly all fluid viewhelpers like this (feel free to add 
some if you need to). This was created with the newest Netbeans 6.9 Beta 
but should work fine with older versions.

How to use them:


Import the zipFile in Netbeans IDE (The file is attached to this post) 
and your ready to go.

(Warning!! This might overwrite existing code templates if you already 
defined some for yourself!!)

Under osx its Preferences -> import -> selectZipfile (select Code 
Templates in Editortab)


Here is a list of all commands so you dont have to check them yourself:


Misc:
alia - alias tag
base - base
debug - debug
esc - escape
flash - flashmessage
img - image
layout - layout
trnsl - translate key
ts - typoscript object
count - count
nl - nonlinebreak


Conditions:
if - if condition
ife - ifelse condition


Loops:

fore - foreach loop
cycl - cycle
grpfor -  group foreach loop


Format:

fhtml - format html
fnum - format number
fcrn - format currency
fpd - format padding
crop - format crop
date - format date


Formelements:

form - open a new form
select - select list
subm - submit button
hidd - hidden field
psw - password field
ckbox - checkbox element
rdo - radiobutton
txta - textarea
txtf - textfield
upl - upload file


Linkelements:

extlink - external link
link - action link
linka - link with arguments
tylink - typolink
email - link email


More information about the TYPO3-project-typo3v4mvc mailing list