Creating a portal frontpage

Author Message

Daniel Guerrier

Friday 25 March 2005 9:18:04 am

I would like my homepage to look like a portal.
In other words, I am trying to figure out how to pull the latest items from different content classes and display them in a seperate portlet.

The docs seem to focus on creating links to sections and having an override template display the info depending on what node is being accessed.

How do you display data from a content class when no node is requested. In order to have it listed in a portlet.

I hope the question makes sense.

Sebastiaan van der Vliet

Friday 25 March 2005 10:45:24 am

Hi Daniel,

If you want to have a really flexible homepage you could do the following:

1. Create a new toolbar, for example: homepage_middle;

2. Create a template pagelayout_home.tpl with the following override:

[pagelayout_home]
Source=pagelayout.tpl
MatchFile=pagelayout_home.tpl
Subdir=templates
Match[node]=2

3. Insert the toolbar in the middle column of this page:

  {tool_bar name=homepage_middle view=full}

instead of

{$module_result.content}

4. Use the node_list toolbar item (full) to add blocks of latest items to your homepage. You can also create new toolbar items, like two-column articles, announcements, etc.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Neil Kanth

Sunday 27 March 2005 6:37:00 am

I'm interested in creating such a homepage, can you explain where and how to create the new toolbar?

regards
-neil

Sebastiaan van der Vliet

Sunday 27 March 2005 9:45:49 am

Hi Neil,

You can create the toolbar for the homepage by adding the following line to the override file toolbar.ini.append.php:

[Toolbar]
AvailableToolBarArray[]=homepage_middle

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Mihai007 Pop

Saturday 18 February 2006 12:18:20 am

I like the idea of a toolbar controlled frontpage / content. I have tried to do what you suggested and it works to a degree. I need to change the layout of a specific toolbar and not change the layout of all the other toolbars.

Maybe one could change the parameter of "view" from full/line to a new one. Is this possible?

Also how can one add different tools (such as two/three column content, etc... ) ?

Do you know of a doc or could you give me some tips on this issue? I would very much appreciate it ! :)

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

Main resources:

Total runtime0.8462 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0391152.6250
Module start 'layout' 0.00600.0030 741.664139.4453
Module start 'content' 0.00900.8357 781.1094628.9063
Module end 'content' 0.84470.0014 1,410.015612.1641
Script end 0.8461  1,422.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3918160.0002
Check MTime0.00150.1715160.0001
Mysql Total
Database connection0.00110.124910.0011
Mysqli_queries0.780992.2867670.0117
Looping result0.00070.0833650.0000
Template Total0.813796.220.4068
Template load0.00270.323820.0014
Template processing0.810995.834720.4055
Template load and register function0.00020.019510.0002
states
state_id_array0.00110.134110.0011
state_identifier_array0.00180.212720.0009
Override
Cache load0.00180.2158340.0001
Sytem overhead
Fetch class attribute can translate value0.00080.097440.0002
Fetch class attribute name0.00120.147660.0002
XML
Image XML parsing0.00160.183540.0004
class_abstraction
Instantiating content class attribute0.00000.002670.0000
General
dbfile0.00090.1120170.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs