Customising Blog Entry

Author Message

Andrew Hill

Tuesday 08 March 2005 12:09:19 am

Hi,

I would like to remove the "Tip a friend" and "Download PDF version of this page" links at the bottom of each weblog entry page.

Is this something that can be set in the .ini files, or do I need to edit the appropriate template file?

Thanks!

Andrew

Łukasz Serwatka

Tuesday 08 March 2005 1:08:32 am

Hi Andrew,

You should edit article.tpl or weblog.tpl. You can find it in Design->Templates->full view.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Andrew Hill

Tuesday 08 March 2005 2:20:38 pm

Hi Lukasz,

Sorry for what must be stupid questions, but:

1) I can only find a weblog.tpl listed as "/admin_preview/weblog.tpl" in the admin pages. Is this really the file I want to edit?

2) If not, how do I go about setting up a teplate override (I assume this is what I want to do?) for the display template?

Thanks!

Andrew

Łukasz Serwatka

Tuesday 08 March 2005 10:23:31 pm

Hi Andrew,

Templates files that you need to edit you can find in:
- Design->Templates
- From "Most common templates" list choose /node/view/full.tpl
- From dropdown list choose your Siteaccess name and click "Set"
- Edit article_full
- Apply changes

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Andrew Hill

Friday 11 March 2005 4:59:40 am

Hi Lukasz,

Thanks for that info - it worked perfectly!

Is there a list somewhere that explains which templates are used for which pages?

Thanks,

Andrew

Łukasz Serwatka

Friday 11 March 2005 5:05:47 am

Andrew, here you can find some information about template overriding
http://ez.no/ez_publish/documentation/customization/custom_design/override_templates

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.9256 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9141152.6250
Module start 'layout' 0.00600.0039 740.539139.4609
Module start 'content' 0.00980.9144 780.0000567.6016
Module end 'content' 0.92420.0013 1,347.601616.1719
Script end 0.9256  1,363.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3797160.0002
Check MTime0.00140.1496160.0001
Mysql Total
Database connection0.00080.087110.0008
Mysqli_queries0.864793.4162660.0131
Looping result0.00060.0643640.0000
Template Total0.890096.220.4450
Template load0.00200.216320.0010
Template processing0.888095.933620.4440
Template load and register function0.00020.019210.0002
states
state_id_array0.00190.203410.0019
state_identifier_array0.00110.123120.0006
Override
Cache load0.00170.1875380.0000
Sytem overhead
Fetch class attribute can translate value0.00070.071720.0003
Fetch class attribute name0.00110.119470.0002
XML
Image XML parsing0.00080.083920.0004
class_abstraction
Instantiating content class attribute0.00000.003090.0000
General
dbfile0.00080.0884180.0000
String conversion0.00000.000940.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs