Datatype Override - blank ".tpl" / not loading?

Author Message

Paul Wilson

Wednesday 02 May 2007 2:00:27 am

Hi,

I've written an override template for ezobjectrelationlist.tpl. It works properly in the user siteaccess, but I get nothing in the admin siteaccess.

This has got me puzzled. Can someone point me in the right direction?

This is the override entry...

[ptw_edit_objectrelationdatatype]
Source=content/datatype/edit/ezobjectrelationlist.tpl
MatchFile=datatype/ptw_edit_ezobjectrelationlist.tpl
Subdir=templates
Match[class_identifier]=article

The datatype shows properly in user siteaccess, but not even a mention of the template in the admin siteaccess. (I'm looking at the same object from each siteaccess).

Looking at the (admin siteaccess) debug output, I get:

eZTemplate: Loading template "content/datatype/edit/ezobjectrelationlist.tpl" with resource "design"
eZTemplate: Loading template <b>"content/datatype/edit/.tpl"</b> with resource "design"
Warning: eZTemplate:attribute_edit_gui May 02 2007 18:46:13 
None of the templates design:content/datatype/edit/ezobjectrelationlist.tpl, design:content/datatype/edit/.tpl could be found

The ".tpl" looks very suspicious, but I can spot the source of the problem.

Any thoughts gratefully accepted. This is driving me nuts!!

- Paul

Paul Wilson

Wednesday 02 May 2007 3:07:08 am

Okay, it looks like it was my placement of the template file. I put it within the "admin" design directory and got a result. I'd expected templates to be found via the template search for a match through extension directories, but obviously this isn't what happens.

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 22:11:51
Script start
Timing: Jan 18 2025 22:11:51
Module start 'layout'
Timing: Jan 18 2025 22:11:51
Module start 'content'
Timing: Jan 18 2025 22:11:51
Module end 'content'
Timing: Jan 18 2025 22:11:51
Script end

Main resources:

Total runtime0.0238 sec
Peak memory usage2,048.0000 KB
Database Queries3

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.0044 740.687539.4766
Module start 'content' 0.01050.0110 780.164189.3984
Module end 'content' 0.02160.0022 869.562530.3047
Script end 0.0237  899.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002912.1572140.0002
Check MTime0.00124.8404140.0001
Mysql Total
Database connection0.00125.067210.0012
Mysqli_queries0.003615.193530.0012
Looping result0.00000.092310.0000
Template Total0.00177.310.0017
Template load0.00104.040710.0010
Template processing0.00083.210910.0008
Override
Cache load0.00072.853710.0007
General
dbfile0.005322.216380.0007
String conversion0.00000.037140.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