Templates - Beginner HOWTO?

Author Message

Alistair McRonald

Tuesday 07 September 2010 12:37:00 pm

Hi,

I'm evaluating eZ Publish for a company to replace their existing website with. I have been very impressed with what I have seen of eZ Publish so far in terms of the structure. However, I would like to create a demo for the company and in order to do that I need to create a new template system with their style.

I've read through all the documentation and unfortunately it is not very clear exactly what files I need to create/alter. For example, I have heard reference to "override.ini.append.php", "full.tpl" and many other ".tpl" files but it is not obvious what to use when. I have created a folder for my design in /ezpublish/mysitedesign but then how do I tell eZ Publish to use which files in this folder?

I would really appreciate a beginners guide in step by step format of what files I need, where and what purpose they serve. I am quite technically proficient but I think the documentation is somewhat lacking in this area.

Many thanks in advance.

Romeo Antony

Tuesday 07 September 2010 5:53:48 pm

Alistair,

Welcome to the ezcommunity. You are the right place.

When u start with ezp , feel a bit hard to follow. But doesn't matter. Once you understand the concepts it will be smooth going.

I suggest you to read the following link where is precisly explained, how to develop a web in ez .

It is so easy to follow step by step instructions in that sample web creation.

http://ez.no/ezpublish/documentation/building_an_ez_publish_site/creating_the_tscm_site

But before you start reading above example , I would recommend you to read the ez basic

http://ez.no/ezpublish/documentation/ez_publish_basics

First try to understand the basics about designs, ezp architecture etc.

hope you will be able to get it soon.

Reagards

Romeo

Alistair McRonald

Wednesday 08 September 2010 6:41:56 am

Thanks for the feedback. Unfortunately the links you have provided say that they are no longer maintained.

However, can you confirm that this is correct about what I need to do.

  • Create a folder at /ezpublish/settings/siteaccess/[sitename]
  • Edit /ezpublish/settings/siteaccess/[sitename]/site.ini.append.php with details of my site
  • Create a folder at /ezpublish/design/[sitename] with the following folders: fonts, images, override, override/templates, stylesheets, templates

The question that follows this is then in order to modify the main page template what files do I need in each of these folders?

Many thanks in advance.

Alistair McRonald

Wednesday 08 September 2010 11:39:20 am

To follow-up, I have tried creating the folder structure described above. The only file in this is /ezpublish/settings/siteaccess/[sitename]/site.ini.append.php

The result of this if I try to go to http://mysite/ezpublish/index.php/sitename is the default site look but in the breadcrumb part "Error / kernel (20)". Presumably I must be missing some files?

Alistair McRonald

Thursday 09 September 2010 1:13:04 pm

Interestingly I turned up this thread from a year ago: http://share.ez.no/forums/setup-design/how-to-start

Someone expressing exactly the same frustrations as myself. I really like the eZ Publish platform and keen to move forward with using it. However, just creating a simple template seems to be an absolute nightmare. I've been comparing eZ Publish with Drupal and ironically the situation with that is reversed - it was quite easy for me to create some styling for it, however the content management side appears to be very confusing.

What the documentation really needs is a step-by-step guide as to exactly what folders and files are needed to create a completely plain template into which a design can be added. I would really appreciate it if someone could take the time to do this. All it needs is the layout of the folder structure and the content of the key files. If someone is able to do this I am happy to create a Tutorial on the site to explain to others how to go about this too.

Thanks in advance.

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

eZ debug

Timing: Jan 18 2025 04:53:05
Script start
Timing: Jan 18 2025 04:53:05
Module start 'layout'
Timing: Jan 18 2025 04:53:05
Module start 'content'
Timing: Jan 18 2025 04:53:06
Module end 'content'
Timing: Jan 18 2025 04:53:06
Script end

Main resources:

Total runtime0.7174 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9141152.6250
Module start 'layout' 0.00580.0029 740.539139.4453
Module start 'content' 0.00860.7071 779.9844532.8203
Module end 'content' 0.71570.0016 1,312.804716.1641
Script end 0.7174  1,328.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4627160.0002
Check MTime0.00140.2020160.0001
Mysql Total
Database connection0.00150.211910.0015
Mysqli_queries0.653891.1378650.0101
Looping result0.00090.1228630.0000
Template Total0.686095.620.3430
Template load0.00220.311720.0011
Template processing0.683795.308120.3419
Template load and register function0.00020.031910.0002
states
state_id_array0.00110.156510.0011
state_identifier_array0.00080.112120.0004
Override
Cache load0.00190.2625410.0000
Sytem overhead
Fetch class attribute can translate value0.00090.119020.0004
Fetch class attribute name0.00120.161060.0002
XML
Image XML parsing0.00070.092420.0003
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00230.3151160.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs