IndexPage

Author Message

Lance Leger

Tuesday 29 April 2003 1:16:22 pm

Greetings,

I would first like to thank the developers of eZ publish for creating an
awesome CMS. I'm still trying to put together my first web site using
this system, however, I like what I've seen so far. I'm having a
a problem using a custom IndexPage (frontpage.tpl) that I've created.
I placed the template in the /design/user/templates/node/view
directory. When I try to load the index.php I do not see the contents
of frontpage.tpl in the body of my web page. From another post I
learned that another user was able to create a custom IndexPage file.
I'm new to this system so I might not be doing this correctly. I usually
try to read the documentation before asking for help, and I haven't
been able to find anything that might suggest why this is not working.
The contents of frontpage.tpl is really simple:

{*?template charset=utf8?*}
This is a test.

Any help would be greatly appreciated!

Thanks,

Lance

Paulo Almeida

Tuesday 29 April 2003 4:11:05 pm

hi

Try placing frontpage.tpl in /design/user/templates. This should work.
Confirm you configurations if you are using "user" siteaccess or "demo".

Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

Lance Leger

Tuesday 29 April 2003 5:16:35 pm

I tried placing the frontpage.tpl file in the /design/user/templates directory
and this did not help. I have user set for DefaultAccess and my IndexPage in
site.ini.append.php reads IndexPage=/content/view/frontpage. eZ publish
is pulling my pagelayout.tpl template from /design/user/templates without
any problems. It just doesn't see the frontpage.tpl file when I place it in
/design/user/templates/node/view.

Any other suggestions?

Thanks for the help!

Lance Leger

Thursday 01 May 2003 2:09:28 am

I've found my mistakes, however, I still have not been able to get
this custom template to load.

I moved my frontpage.tpl file from
/design/user/templates/node/view
to
/design/user/templates/content/view

If I try to load this page manually from my site nothing happens.

Adolfo Barragán

Thursday 01 May 2003 11:22:13 pm

I've created my own view mode (frontpage.tpl) as follow:

1. In <siteroot>/settings/override/site.ini.append.php
DefaultAccess=user

2. In <siteroot>/settings/siteaccess/user/site.ini.append
[SiteSettings]
IndexPage=/content/view/frontpage/2
DefaultPage=/content/view/frontpage/2
[DesignSettings]
SiteDesign=user

3. I have put my "frontpage.tpl" in <siteroot>/design/user/templates/node/view/

And this work for me. I think your problem is because the node_id is missing in your URL and then nothing is retrieve where ez executes the query. So, try using the node_id of root folder (as me).

Regards
Adolfo Barragán

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 30 2025 19:32:23
Script start
Timing: Jan 30 2025 19:32:23
Module start 'layout'
Timing: Jan 30 2025 19:32:23
Module start 'content'
Timing: Jan 30 2025 19:32:23
Module end 'content'
Timing: Jan 30 2025 19:32:23
Script end

Main resources:

Total runtime0.0235 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0078151.1953
Module start 'layout' 0.00560.0041 739.2031220.6406
Module start 'content' 0.00970.0121 959.84381,001.7578
Module end 'content' 0.02180.0017 1,961.601637.9922
Script end 0.0235  1,999.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.7592140.0002
Check MTime0.00114.7998140.0001
Mysql Total
Database connection0.00083.569410.0008
Mysqli_queries0.002410.154530.0008
Looping result0.00000.059810.0000
Template Total0.00125.110.0012
Template load0.00093.994410.0009
Template processing0.00031.106610.0003
Override
Cache load0.00062.667710.0006
General
dbfile0.00031.447580.0000
String conversion0.00000.030440.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