Problem following the "mybookstore.com" example...

Author Message

Christopher Thorjussen

Saturday 24 May 2003 5:11:12 pm

I've just set up ezPub3 (ezP newbie) and I'm trying to follow the mybookstore.com example from the SDK - http://www.ez.no/sdk/tutorials/view/main_concepts

For instance - i've added a book as the example - and book is shown in the line_class_6.tpl override template, but above the listing, I get:

Books

Name
Books
Description

Navn Klasse Seksjon
<here goes the book info from the db>

It looks like it's wrapped into some sort of adminlayout or atleast it's too much information - and it is coming from: {$module_result.content} function.. I grabbed a screenshoot - look here: http://www.joffer.net/ezp3bookstore.gif

I don't think I'm wrong in saying that the SDK isn't up to date... I had to make more changes to site.ini files than the sdk told me to, to get where I am now - which isn't very far.. and not to forget changing some user roles for anonymous user to read..

Paul Borgermans

Sunday 25 May 2003 4:13:55 am

I think your new objects did not get assigned the right section and hence pick up the default template. Look in the admin interface and make sure it has the right sectoin. If this does not help, are you sure the pagelayout_section_xx.tpl is in the right directory and exists after all?

See also:

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/custom_designs_directory_structure_explained

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 18 2025 10:55:27
Script start
Timing: Jan 18 2025 10:55:27
Module start 'layout'
Timing: Jan 18 2025 10:55:27
Module start 'content'
Timing: Jan 18 2025 10:55:29
Module end 'content'
Timing: Jan 18 2025 10:55:29
Script end

Main resources:

Total runtime1.2789 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1641152.6406
Module start 'layout' 0.00460.0032 741.804739.4766
Module start 'content' 0.00771.2693 781.2813525.5625
Module end 'content' 1.27710.0018 1,306.84388.1250
Script end 1.2788  1,314.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2538160.0002
Check MTime0.00130.1022160.0001
Mysql Total
Database connection0.00060.046110.0006
Mysqli_queries1.232796.3871540.0228
Looping result0.00060.0485520.0000
Template Total1.247297.520.6236
Template load0.00220.168620.0011
Template processing1.245197.358020.6225
Template load and register function0.00020.014210.0002
states
state_id_array0.00110.087310.0011
state_identifier_array0.00220.168920.0011
Override
Cache load0.00180.1371200.0001
Sytem overhead
Fetch class attribute can translate value0.00110.084520.0005
Fetch class attribute name0.00180.140430.0006
XML
Image XML parsing0.00080.064520.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00110.0845170.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs