Forums / General / Image object template?

Image object template?

Author Message

Edward Eliot

Tuesday 21 September 2004 1:38:38 am

Hello,

Where is the template for the image object in the media section. Bascially I want to change it to output only the image tag - ie. remove all the surrounding DIVs etc?

Is there any way I can swtich on a debug node which will show me all the templates which get used on a page. It is really hard trying to trace what is used where.

Also, a point for the interface project. Browsing the templates in the admin section is really slow. 35 pages of templates to click through is a lot. Perhaps search funtionality could be introduced to this or more logical grouping. The most used templates section simply isn't enough at the moment.

Regards,

Ed.

Marco Zinn

Tuesday 21 September 2004 1:09:33 pm

Hi,

first, i second your comment about the template list beeing pretty much useless, as it is not even sorted.

For your question:
I think, should look for something like
/content/view/full or /content/view/line.
Switch to your admin siteaccess with that dropdown box. Then you should see an override for the "image" class. Edit it, this should be the template.

Marco
http://www.hyperroad-design.com

Edward Eliot

Wednesday 22 September 2004 2:01:05 am

Thanks, I will try that.

Frederik Holljen

Wednesday 22 September 2004 2:14:56 am

A more efficient way of browsing templates and overrides is due to be implemented in 3.6.

Edward Eliot

Monday 18 October 2004 2:11:43 am

I still cannot make this work. I have edited

design/base/override/templates/line/image.tpl

and removed the DIVs, cleared the cache and they are not removed.

I have also copied this template to my user design directory under

override/templates/line

and

override/templates/content/line

and that doesn't work either.

Does anyone have any ideas for this?

Norman Leutner

Monday 18 October 2004 2:27:38 am

Edit your site.ini.php

[TemplateSettings]
Debug=disabled

and enable template-debugging .

Take a look which template is used within your view.

Edit your override.ini.append ans create a new entry like this:

[image]
Source=node/view/full.tpl
MatchFile=image.tpl
Subdir=templates
Match[class]=5

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Edward Eliot

Monday 18 October 2004 4:37:45 am

OK, thanks for the reply. I have tried numerous things to get this working without success. It is far from intuative. For what I understand I need to override

/content/view/embed/image.tpl

but where should I place this in my templates folder or what override.ini entries should I add to make it work. I want to override the display of all embedded images.

Any ideas anyone?

Norman Leutner

Monday 18 October 2004 6:44:41 am

If you don`t want to create a ovverride for one design only,
you can edit the standard design template (\ezpublish\design\standard\templates\content\datatype\view\ezimage.tpl)

Overrides are stored in setting/siteaccess/yoursitedesign/overrride.ini.append

The image has a class ID

Match[class]=5

If this class is matched within the full.tpl

Source=node/view/full.tpl

the image.tpl from from design/yourdesign/override/templates

Subdir=templates

will be used for displaying your content.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

eZ debug

Timing: Jan 18 2025 11:33:23
Script start
Timing: Jan 18 2025 11:33:23
Module start 'content'
Timing: Jan 18 2025 11:33:24
Module end 'content'
Timing: Jan 18 2025 11:33:25
Script end

Main resources:

Total runtime1.0960 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.6016180.8516
Module start 'content' 0.00840.9082 768.4531689.3984
Module end 'content' 0.91660.1793 1,457.8516340.4531
Script end 1.0959  1,798.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3854210.0002
Check MTime0.00150.1395210.0001
Mysql Total
Database connection0.00120.105910.0012
Mysqli_queries0.995890.85862130.0047
Looping result0.00230.21362110.0000
Template Total1.063697.020.5318
Template load0.00390.352620.0019
Template processing1.059796.690120.5299
Template load and register function0.00020.019810.0002
states
state_id_array0.00100.090410.0010
state_identifier_array0.00100.093420.0005
Override
Cache load0.00180.1633570.0000
Sytem overhead
Fetch class attribute can translate value0.00200.182350.0004
Fetch class attribute name0.00170.1566110.0002
XML
Image XML parsing0.00270.250150.0005
class_abstraction
Instantiating content class attribute0.00000.0021120.0000
General
dbfile0.00320.2906400.0001
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs