aricle design

Author Message

hugo meloni

Friday 23 May 2008 5:48:03 am

hi,
I am building a website on ezpublish and I have a problem.
I want to know which template is used to display pictures in an article. I need to override it because the text and the pictures are in differents markers.

thanks

Andreas Kaiser

Friday 23 May 2008 10:37:11 am

The best is to check what templates are used with the "debug output - List of used templates".

Anyway, i think the original image template to override is:

- design/standard/templates/content/datatype/view/ezimage.tpl

But please check it in your debug output...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

hugo meloni

Sunday 25 May 2008 11:59:20 pm

thank you
Your answer really helps me, iI try to find it during 3 days.
I need to override the template content/datatype/view/ezobjectrelation.tpl . By default it shows the title of the picture, and I want to remove it, but I don't know where it is in the template

Andreas Kaiser

Tuesday 27 May 2008 3:48:06 am

Hi,

What version of ez publish are you using? Are you using ezwebin extension?

Most times you just can copy the original template from:

base/templates/content/datatype/view/ezobjectrelation.tpl

to

your_design/templates/content/datatype/view/ezobjectrelation.tpl

and change what you want in this template...

After changes delete cache and load the site. The new template should override the original one and be loaded in your site...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

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

Main resources:

Total runtime0.7500 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.7891152.6094
Module start 'layout' 0.00570.0047 740.398439.4141
Module start 'content' 0.01050.7377 779.8125540.5781
Module end 'content' 0.74820.0018 1,320.390612.1953
Script end 0.7500  1,332.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4223160.0002
Check MTime0.00130.1675160.0001
Mysql Total
Database connection0.00070.095910.0007
Mysqli_queries0.691092.1331600.0115
Looping result0.00060.0745580.0000
Template Total0.707394.320.3536
Template load0.00200.261820.0010
Template processing0.705394.034820.3526
Template load and register function0.00030.037610.0003
states
state_id_array0.00110.142810.0011
state_identifier_array0.00080.107020.0004
Override
Cache load0.00170.2221270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.080220.0003
Fetch class attribute name0.00130.168550.0003
XML
Image XML parsing0.00060.083920.0003
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00420.5615160.0003
String conversion0.00000.001240.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs