Different layout on front page

Author Message

sem hadland

Wednesday 25 August 2004 9:59:11 am

HELLO
I have checked the site but can not find any onfo on how to make a different layout for the front page. I have edited the pagelayout.tpl file with great success, but now I will make a different front page.

Please point me to the right direction, or tell me how to do this.

Thank you very much.

You can check my site at http://intra.dalane-tidende.no/index.php

Tim Dickinson

Wednesday 25 August 2004 10:38:25 am

To make a different frontpage you can do 2 things:

1) Go into the sit.ini.append for your siteaccess, and change the IndexPage= to point to any page/article on your site that you like.

2) Log-in to the admin interface, and edit the folder called 'home.'
The text you have on the front page of your site is the text in the description field of the 'Home' folder.
Change it to whatever you like.

There are other things that you could (probably) also do, but these are the easiest (only ones I know of).

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

sem hadland

Wednesday 25 August 2004 2:28:20 pm

Yes, I am interested to change the CONTENT, but first I need to create a unique LAYOUT template for the main index page.

Any help, or anyone who can point me to the right direction?

Thank you.

Ted Striker

Thursday 26 August 2004 12:33:34 am

Hi Sem!

Have you follow this tutorial? :::::>>>>>>>

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

When I started to work with eZPublish 3.2...those days where nice..:) I followed this tutorial and it helped me a lot to understand the way eZPublish wors.

I have created a project in which the admin can choose which articles are shown in the front page and can also choose among different templates to show them with different appearence (digital newspaper like). Unfortunately it's not still finished and can not be visited yet :(

Cya!

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Roy Bøhmer

Thursday 26 August 2004 5:51:54 am

Here is what I did:
In /design/your_design/templates I created a file called pagelayout_front.tpl (or whatever you like)

In settings/siteaccess/your_siteaccess/override.ini.append.(php) comes the trick. Write

[Frontpage]
Source=pagelayout.tpl
MatchFile=pagelayout_front.tpl
Subdir=
Match[node]=47

Replace Match[node]=47 with the node_id of the node you would like to have on the front

Hope it helps!

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

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1563152.6250
Module start 'layout' 0.00570.0033 741.781339.4609
Module start 'content' 0.00900.0051 781.242293.3203
Module end 'content' 0.01410.0018 874.562534.3047
Script end 0.0159  908.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.3666140.0002
Check MTime0.00117.1224140.0001
Mysql Total
Database connection0.00053.283010.0005
Mysqli_queries0.003421.140730.0011
Looping result0.00000.157510.0000
Template Total0.00159.310.0015
Template load0.00084.962710.0008
Template processing0.00074.257810.0007
Override
Cache load0.00063.497510.0006
General
dbfile0.00085.141280.0001
String conversion0.00000.069040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs