Homepage with 2 columns

Author Message

Andreas Kaiser

Friday 29 September 2006 9:25:56 am

I have to create a hompage template with 2 columns.

How good would it be to modify the article class with two select boxes (show frontpage column 1 / show frontpage column 2) and then filter by attributes the articles to show in every column of the template?

Perhaps other option would to create a section, but I don't really see how really sections work...

(I have to learn a lot about ez publish and the templates...because I feel to lost...)

Thanks in advance

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Ɓukasz Serwatka

Monday 02 October 2006 12:05:08 am

Hi Andreas,

I would use new content class called "frontpage" where you can have those 2 columns, XML block attributes and title (Text string) attribute. Then you need to assign template to that class and check if column has content ( http://ez.no/community/forum/general/check_if_attribute_has_content_or_not ) then display it. Using CSS you can easily play with columns width.

http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19:22:52
Script start
Timing: Jan 18 2025 19:22:52
Module start 'layout'
Timing: Jan 18 2025 19:22:52
Module start 'content'
Timing: Jan 18 2025 19:22:53
Module end 'content'
Timing: Jan 18 2025 19:22:53
Script end

Main resources:

Total runtime0.9236 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.0234152.6250
Module start 'layout' 0.00720.0028 741.648439.4453
Module start 'content' 0.01000.9122 781.0938533.1172
Module end 'content' 0.92220.0014 1,314.21098.1719
Script end 0.9236  1,322.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3680160.0002
Check MTime0.00140.1517160.0001
Mysql Total
Database connection0.00110.114210.0011
Mysqli_queries0.873594.5731540.0162
Looping result0.00070.0761520.0000
Template Total0.885895.920.4429
Template load0.00220.232820.0011
Template processing0.883695.666420.4418
Template load and register function0.00010.010910.0001
states
state_id_array0.00160.169710.0016
state_identifier_array0.00260.283220.0013
Override
Cache load0.00180.1933140.0001
Sytem overhead
Fetch class attribute can translate value0.00150.159620.0007
Fetch class attribute name0.00150.159640.0004
XML
Image XML parsing0.00130.136020.0006
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00100.1084240.0000
String conversion0.00000.000940.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs