Forums / Setup & design / Your favorite Template editor?

Your favorite Template editor?

Author Message

Marco Zinn

Saturday 04 December 2010 8:24:04 am

Hi all,

just a quick question:

What's your favorite Website-Editor, when you work in eZ templates?

My requirements would be:

  • ez4 template language "understanding" (syntax hightlighting, maybe auto-completing of control structures etc)
  • Build-in (S)FTP client. Optionally SSH-Client for up/downloadin templates
  • Nice to have: Build-in SVN client and/or Git client
  • Not too expensive
  • Running in Win7, 64 bit

I know, there used to be some "plugins" or so for eclipse for the ez4 template language, but i'm not up-to-date, if they are still maintained. I know, that no HTML editor will understand ez4 templates "build-in".

So, what are your favorites and their pros and cons?

Marco
http://www.hyperroad-design.com

Bertrand Dunogier

Saturday 04 December 2010 10:48:41 am

PHPEdit, with the eZ Publish plugin, sounds like a good candidate. It has most of the features you require.

http://www.phpedit.com/

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Ivo Lukac

Monday 06 December 2010 3:19:50 am

Hi

Try Sublime. Excellent editor!

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Jérôme Vieilledent

Monday 06 December 2010 5:53:04 am

Eclipse PDT 64bits ! I use it every day !

Here are the plugins I use :

For FTP/SFTP you may use Eclipse SFTP.

Nicolas Pastorino

Monday 06 December 2010 6:12:27 am

"

Eclipse PDT 64bits ! I use it every day !

Here are the plugins I use :

For FTP/SFTP you may use Eclipse SFTP.

"

+1 !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Gaetano Giunta

Monday 06 December 2010 7:25:55 am

Shameless (OT) self-promotion: if you like smileclasses, check out the last release of the ezdebug extension; browser-based, it is a smileclasses on steroids.

For browser-based code highlighting, ezgeshi rulez!

And if anybody wants to takle a bespin-based editor fo eZP, just drop me a note!

Principal Consultant International Business
Member of the Community Project Board

Marco Zinn

Friday 14 January 2011 12:40:35 pm

Thanks a lot for your advices. I really appreciate it and i'm sure, others will, too!

I had some time now to install eclipse and the smile and ezclipse plugins. I also installed the smile extension (smileclasses) on an ez 4.4 site. Look fine to me.

Now: I get the XML output from smileclasses and i can create a view named "Classes View" in Eclipse. But i cannot find the box where i shall enter the URL http://hostname.de/smileclasses/export as described in Paul Wilsons documentation from 2007 in Page 15. So, how do i tell the "Classes View" view on where to get it's data from?

Gaetano: Your shameless self-promotion did not include the path to your project: http://projects.ez.no/ezdebug_template_operator . It looks very nice to me for debugging values, so i don't see too much connection to the "Classes" view in smileclasses. But i will definitly give this a try, too :)

Now, i have 3 ezPublish Template editors in Eclipse: "ez TPL Editor", "JAC ez Template Editor" and "Smile TPL editor". From a first look, they seem to differ in the syntax highlighting. What else? I read about "auto-completion", but i could not find this "in action" yet. Any hints? Which TPL file editor shall i use and where can i determine the default one in Eclipse (that all new to me).

I guess, I should create a PHP project for each ez site, yes? Or is there some better Project type? I didn't find an "ez site" project or so.

Last, but not least: How do I use "Var Browser for exploring the $node variable." from ezclipse?

Thanks in Advance!

Marco
http://www.hyperroad-design.com

Jérôme Vieilledent

Friday 21 January 2011 12:30:40 am

Hi Marco

To configure the Smile plugin for the classes view, you need to :

  • Select your project in the source browser
  • Go to project menu (not right-click) => Properties => eZ Publish

This is the same for eZClipse, but I never managed to configure it correctly for the var browser.

About template editors, I personnaly use JAC eZ Template Editor, because I like the syntax coloring and the way it highlights TPL code vs HTML. The auto-completion is fairly basic, as it just auto-completes built-in template operators and functions, but not for their parameters.

It's indeed advised to use PHP projets for each site, but be aware that PDT has an annoying issue to avoids to open templates in the right editor when you double-click on a template (it opens them in basic the HTML editor). To force Eclipse open templates in the eZ Template editor, you'll need to right click on the template/open with...

eZ debug

Timing: Jan 18 2025 00:07:49
Script start
Timing: Jan 18 2025 00:07:49
Module start 'content'
Timing: Jan 18 2025 00:07:50
Module end 'content'
Timing: Jan 18 2025 00:07:51
Script end

Main resources:

Total runtime1.1622 sec
Peak memory usage4,096.0000 KB
Database Queries220

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.8281180.8438
Module start 'content' 0.00851.0121 769.6719815.9922
Module end 'content' 1.02060.1415 1,585.6641344.4688
Script end 1.1622  1,930.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4055210.0002
Check MTime0.00190.1662210.0001
Mysql Total
Database connection0.00090.073710.0009
Mysqli_queries1.050890.41502200.0048
Looping result0.00270.23032180.0000
Template Total1.129997.220.5650
Template load0.00220.188320.0011
Template processing1.127797.027720.5639
Template load and register function0.00010.009410.0001
states
state_id_array0.00080.071510.0008
state_identifier_array0.00110.096320.0006
Override
Cache load0.00210.1775850.0000
Sytem overhead
Fetch class attribute can translate value0.00170.147870.0002
Fetch class attribute name0.00130.1128140.0001
XML
Image XML parsing0.00330.287370.0005
class_abstraction
Instantiating content class attribute0.00000.0037160.0000
General
dbfile0.00560.4791590.0001
String conversion0.00000.003430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
4content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
12content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 59
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs