new datatype - can't get templates to load

Author Message

Hardy Pottinger

Tuesday 11 May 2004 1:05:18 pm

I'm still finding my legs with eZPublish 3, sorry if this is an easy question, but I can't figure it out, and don't see it mentioned in the forums (and I'm going absolutely batty at this point).

I'm trying to create a new datatype, and decided to copy the ezstring type and build from there. I've managed to get it to load, sort of, but it's using the default generic datatype templates to display, instead of the one's I've created in the extension folder. According to debug, eZ isn't even looking in the correct folder, although I've added the appropriate desigin.ini.append file in ./extension/myextension/settings/.

I can get the templates to load if I add them into the /design/standard/templates/class/datatype/[edit|view] (which is where eZ is looking right now).

Here's the desigin.ini.append file:

[ExtensionSettings]
DesignExtensions[]=myextension

The only thing I can think of is that my extension name and my datatype name are different, but I'm assuming that's OK, because, while the examples have similar names, the generic path names given in the tutorials imply that isn't necessary, and I'm not sure how the extension system would make much sense if you had to have one extension per datatype.

Please, somebody keep me from pulling the last of my hair out! :-\

Paul Forsyth

Wednesday 12 May 2004 12:24:24 am

Hardy,

Do you have a content.ini.append.php file within your extension? You need to declare your new datatype there.

Have you set the file permissions for your new files, so that the web server can read them?

paul

--
http://www.visionwt.com

Hardy Pottinger

Wednesday 12 May 2004 9:52:19 pm

Hi, I do have a content.ini.append file, at /extension/myextension/settings/this is what it looks like:

[DataTypeSettings]
ExtensionDirectories[]=myextension
AvailableDataTypes[]=mydatatype

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 21:12:47
Script start
Timing: Jan 18 2025 21:12:47
Module start 'layout'
Timing: Jan 18 2025 21:12:47
Module start 'content'
Timing: Jan 18 2025 21:12:49
Module end 'content'
Timing: Jan 18 2025 21:12:49
Script end

Main resources:

Total runtime1.4392 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0469152.6406
Module start 'layout' 0.00620.0027 740.687539.4766
Module start 'content' 0.00901.4287 780.1641505.0703
Module end 'content' 1.43770.0015 1,285.234412.1250
Script end 1.4392  1,297.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2293160.0002
Check MTime0.00130.0924160.0001
Mysql Total
Database connection0.00150.101210.0015
Mysqli_queries1.386096.3003570.0243
Looping result0.00060.0383550.0000
Template Total1.404797.620.7024
Template load0.00220.154020.0011
Template processing1.402597.448420.7012
Template load and register function0.00010.007410.0001
states
state_id_array0.00090.065710.0009
state_identifier_array0.00210.148220.0011
Override
Cache load0.00180.1231220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.033220.0002
Fetch class attribute name0.00090.063040.0002
XML
Image XML parsing0.00340.237320.0017
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00430.2967160.0003
String conversion0.00000.000540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs