Forums / Setup & design / Creating a portal frontpage

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 ! :)