[TYPO3-mvc] Fluid code templates for Netbeans IDE
Stefano Cecere
scecere at krur.com
Sun Feb 27 08:49:42 CET 2011
hi everybody
yesterday i gave a try to the new beta 2 of NetBeans 7... (1) it rocks!
(i have benn comparing NB 6.9 to the hyped PhpStorm 2, in last month... at
the end i preferred NB for several reasons.. although Pstorm is indeed
more "intelligent")
i was really tempted to go into PhpStorm mode, but luckily a new beta 2 of
NB 7 came out bringing some features (like the possibility to direcly jump
to referring class of any function/class/statement by simple
command+click! also taking care of Phpdocs definitions... so a very +1 for
ExtBase and Fluid!
obvioulsy i reimported Alex Fuild snippets.. and was inquiring about
Extbase support (NB already supports Symphony and Zend with plugins)
anybody already did something?
i think what i need (and probably do) are getter and setters snippets.
ciao
stefano
PS: NB 7 seems to hang a bit when examining the 4.5.2 core .. let him work
for a few minutes!
* 1 : http://dlc.sun.com.edgesuite.net/netbeans/7.0/beta/
On Thu, 20 May 2010 16:52:23 +0200, Alex Bailey <vile at planet-generals.de>
wrote:
> 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
--
____ ___ __ _ ______________________
Stefano Cecere
krur.com multimedia
More information about the TYPO3-project-typo3v4mvc
mailing list