How to set the <title> ?

Author Message

Xavier Dutoit

Tuesday 11 October 2005 8:47:25 am

The way of how ez set the title (roughly the path) works fine for most of the pages.

However, for the homepage, I'd like to have something more specific. Any idea on how to set the title of a page ?

X+

http://www.sydesy.com

Ɓukasz Serwatka

Tuesday 11 October 2005 10:33:15 am

Path in <title> is generated in page_head.tpl. You can override this file and add some logic with {if}

{if eq( $module_result.node_id, HOME_ID )}
  special title
{else}
  standard title_path
{/if}

Just copy standard page_head.tpl into design/(your_design)/templates/ and add changes. Remeber to clear the cache.

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 16:18:38
Script start
Timing: Jan 18 2025 16:18:38
Module start 'layout'
Timing: Jan 18 2025 16:18:38
Module start 'content'
Timing: Jan 18 2025 16:18:39
Module end 'content'
Timing: Jan 18 2025 16:18:39
Script end

Main resources:

Total runtime1.1150 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.3359152.6250
Module start 'layout' 0.00550.0024 741.960939.4453
Module start 'content' 0.00791.1054 781.4063531.5781
Module end 'content' 1.11330.0016 1,312.98448.1641
Script end 1.1150  1,321.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2912160.0002
Check MTime0.00130.1165160.0001
Mysql Total
Database connection0.00090.084410.0009
Mysqli_queries1.071996.1382540.0199
Looping result0.00050.0443520.0000
Template Total1.086797.520.5433
Template load0.00180.158620.0009
Template processing1.084997.298120.5424
Template load and register function0.00010.008410.0001
states
state_id_array0.00080.070110.0008
state_identifier_array0.00080.072320.0004
Override
Cache load0.00140.1276120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.065920.0004
Fetch class attribute name0.00150.130840.0004
XML
Image XML parsing0.00100.092920.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00080.0742240.0000
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0005 secs