Forums / Setup & design / ezpublish site design methods.

ezpublish site design methods.

Author Message

Daniel Guerrier

Monday 28 March 2005 8:35:01 am

There seems to be two options when creating a site using ezp.

The first would be to rely solely on template overrides but that means you are locked into to basic look and feel of default skins if you don't feel like creating a new one.

The second is to create a bunch of templates that extract data and include them where needed.

Is there a happy medium or is this totally of base?

Jonathan Dillon-Hayes

Monday 28 March 2005 12:07:44 pm

Heya:

I'm not really sure how those are different.

At it's core, whenever you're working with a OO framework, you have to have a method to express your data that's generated by your classes into something your users can use.

Whether you're building eZ Publish or your own handbuilt CMS, you're always going to have to do this.

The second method your describing is more proceedural progamming (essentially using ez as a basic database). It's not really taking advantage of the power of eZ Publish, not it's OO underpinnings.

If you just want to get a default style and customize it, get one of the pre-designed results of the recent template contest:
http://ez.no/community/contribs/site_styles

Otherwise, yes, you do have to set up templates to express the data. Actually, eZ Publish is really intelligently build with the "overrrides", because it provides profound flexibility.

You got to remember, this system is design to build a system that scales well, and is less work in the big picture. Some modicum of effort is required to set it up initially.

Jonathan

---------
FireBright provides advanced eZ deployment with root access
http://www.FireBright.com/

Frey Staso

Tuesday 29 March 2005 8:26:38 am

Actually its not really that hard once you play with it. You can customize the overrides to fit your own needs quite easily. Each .tpl override is more or less just html code, just make sure you have a loop to display the object you are viewing (like a folder) and or the objects underneath where you are viewing (like an article)

If you follow along with the chess tutorial you'll see its pretty easy as long as you remember that each override goes inside of the pagelayout.tpl.

while these DO override the "standard" look and feel of ezpublish, the name is a little misleading. Really you are making a small tpl (basically html) file to display your data, don't really think about it "overriding" anything.

Open some of the overrides inside of dreamweaver or your favorite editor and try making small changes. Youll quickly see how this CMS can be used.

eZ debug

Timing: Jan 18 2025 11:10:32
Script start
Timing: Jan 18 2025 11:10:32
Module start 'content'
Timing: Jan 18 2025 11:10:32
Module end 'content'
Timing: Jan 18 2025 11:10:32
Script end

Main resources:

Total runtime0.7718 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 591.3281180.8359
Module start 'content' 0.00940.6301 772.1641569.9688
Module end 'content' 0.63950.1322 1,342.1328332.7813
Script end 0.7717  1,674.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.6212210.0002
Check MTime0.00160.2072210.0001
Mysql Total
Database connection0.00150.191510.0015
Mysqli_queries0.695990.17291960.0036
Looping result0.00190.24201940.0000
Template Total0.735495.320.3677
Template load0.00240.316920.0012
Template processing0.732994.969920.3665
Template load and register function0.00020.025910.0002
states
state_id_array0.00450.577110.0045
state_identifier_array0.00080.101720.0004
Override
Cache load0.00200.2617240.0001
Sytem overhead
Fetch class attribute can translate value0.00140.175540.0003
Fetch class attribute name0.00130.168540.0003
XML
Image XML parsing0.00280.357240.0007
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00450.5800270.0002
String conversion0.00000.000730.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs