Forums / Setup & design / IndexPage

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

eZ debug

Timing: Jan 18 2025 02:08:49
Script start
Timing: Jan 18 2025 02:08:49
Module start 'content'
Timing: Jan 18 2025 02:08:49
Module end 'content'
Timing: Jan 18 2025 02:08:49
Script end

Main resources:

Total runtime0.1586 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.0062 588.9844180.8516
Module start 'content' 0.00620.0064 769.835997.8125
Module end 'content' 0.01260.1460 867.6484527.7109
Script end 0.1586  1,395.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.2295200.0002
Check MTime0.00140.9014200.0001
Mysql Total
Database connection0.00080.484710.0008
Mysqli_queries0.110169.42341410.0008
Looping result0.00140.89831390.0000
Template Total0.145491.610.1454
Template load0.00090.542710.0009
Template processing0.144591.101310.1445
Override
Cache load0.00060.375110.0006
Sytem overhead
Fetch class attribute can translate value0.00100.633510.0010
XML
Image XML parsing0.00030.199310.0003
General
dbfile0.00503.1736200.0003
String conversion0.00000.003930.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