Forums / Setup & design / Different layout on front page

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!

eZ debug

Timing: Jan 19 2025 00:21:06
Script start
Timing: Jan 19 2025 00:21:06
Module start 'content'
Timing: Jan 19 2025 00:21:06
Module end 'content'
Timing: Jan 19 2025 00:21:07
Script end

Main resources:

Total runtime0.2512 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.7266180.8359
Module start 'content' 0.00780.0060 768.562597.8672
Module end 'content' 0.01380.2374 866.4297526.1797
Script end 0.2512  1,392.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.4523200.0002
Check MTime0.00150.6008200.0001
Mysql Total
Database connection0.00100.397610.0010
Mysqli_queries0.197878.74261410.0014
Looping result0.00170.66151390.0000
Template Total0.237194.410.2371
Template load0.00070.285010.0007
Template processing0.236494.084610.2364
Override
Cache load0.00050.199010.0005
Sytem overhead
Fetch class attribute can translate value0.00150.598610.0015
XML
Image XML parsing0.00040.146910.0004
General
dbfile0.00471.8555200.0002
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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