Scrap Templates move to XSLT + PHP

Scrap Templates move to XSLT + PHP

Friday 29 August 2003 6:44:29 pm - 5 replies

Author Message

Jan Borsodi

Monday 08 September 2003 2:38:40 am

Actually the goal of template systems is to separate content from presentation. This is exactly what the eZ template system does.
There is also some separation of logic from presentation, most of the logic is done in PHP code but controlled by the template.

When we started working on the new template system our primary goal was to have a system that would give lots of control to the designers/implementers while still retaining control of what is allowed to be done, for instance a designer can fetch the data he wants dynamically but cannot write PHP code directly that accesses files or other parts.

Most template systems are either to free allowing you to do too much and others are too restrictive since the underlying code controls the data that are present for the template.

By using something like XSLT you will end up with the latter, XSLT was primarily meant to transform the data that is already present not fetch data dynamically and the transform it.

As for dreamweaver issue I believe it's a dreamweaver problem and not an eZ template problem. Dreamweaver (as far as I know) were meant to work on static pages while eZ template is meant to allow dynamic pages.
So until dreamweaver gets support for custom template languages and allows you to give it example data (or fetch from eZ publish) you can't use it directly for template work. However you can use dreamweaver to set up to basics of the site and then add in template code to handle the dynamics.

I also don't think XSLT is that easy to work with, it's a really complicated system.

Short said: We will not change the template system.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Alan Sparkes

Monday 13 October 2003 12:10:25 pm

I am new to EZ and certaily no real developer/programmer. However, i have spent the last few years hacking and designing PostNuke themes. THey are currently working on a template engine whioch uses smarty [?] which is simpler than ez templates but still requires a little programming frame of mind. On the other hand systems lke Mamboserver have a complete wysiwyg template system but it is a bit limiting.

My experience over the last few years has now put me in a position to really appreceiate the information architecture available in ezpublish. However, the template system is complex and, although, i have learnt alot today, I can't see where the 'ez' is in publishing. It seems that you cant get a whole site off the ground without knowing a language which actually looks more complex than php! I'd rather learn more php and embed it in my html than learn another template language. That said I can see that it is not possible to provide this level of flexibility and power with a single wysiwyg editable template - be nice but i can't see it happening.

ez is really designed by programmers - it shows in the object everything. Cool i love it but it aint gonna win alot of html/css image designers over any time soon. But I guess you make an investment and benefit...eventually!

If ezsystems can give it away I can spend a few hrs learning it

alans

Paul Borgermans

Monday 13 October 2003 12:29:38 pm

Alan,

Thanks for your input

If template language complexity is an issue (and it may well be for quite a few ez users), the good news is that for part of the audience, customisation will be largely point and click in ezp 3.3 and beyond.

I appreciate the template system since it reflects also the architecture / functions of ez publish (and should not go beyond that), in spite of some shortcomings.

For pure content (which in our and others situation will be more and more xml variants), the xslt add-on is a must for rendering. For the rest (page-layout and other functionality), the ez template system is fine and pretty powerful.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Björn Dieding@xrow.de

Monday 13 October 2003 1:17:52 pm

From my understanding of XSLT

it would mean that we could have one template that could e.g generate PDF or HTML output.

This also would mean we no longer use the html inside the templates.

we can still use the current eZ template logic

we have better validation

This shoulds all reasonable and good to me.

Whatever... most of the time eZ does it right.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Paul Borgermans

Monday 13 October 2003 1:25:17 pm

XSLT:

there is one exception: the possibility to embed other objects in your ezxml text fields and choose a view type. This would require some more processing (xml doc has to be "massaged" to get meaningful input for a xslt spec).

For other future xml field variants, this may well be the solution (re-use existing xslt sheets).

-p

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.