webbrowser title without RootFolder

Author Message

Dominik Stoeppel

Wednesday 03 December 2003 7:45:05 am

hi,

I have include the page_head.tpl from the standard design folder to my templates.

How can I change it, that the title doesn't include the RootFolder.

home - SiteName and not home / Root Folder - Sitename, if I go in the folder home for example.

I try some things, but it's not ok.

This is from the page_head.tpl

{let name=Path
path=$module_result.path
reverse_path=array()}
{section show=is_set($module_result.title_path)}
{set path=$module_result.title_path}
{/section}
{section loop=$:path}
{set reverse_path=$:reverse_path|array_prepend($:item)}
{/section}

{set-block scope=root variable=site_title}
{section loop=$Path:reverse_path}{$:item.text|wash}{delimiter} / {/delimiter}{/section} - {$site.title|wash}
{/set-block}
{/let}

<title>{$site_title}</title>

thank you

Dominik

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 19 2025 00:23:37
Script start
Timing: Jan 19 2025 00:23:37
Module start 'layout'
Timing: Jan 19 2025 00:23:37
Module start 'content'
Timing: Jan 19 2025 00:23:38
Module end 'content'
Timing: Jan 19 2025 00:23:38
Script end

Main resources:

Total runtime0.6821 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0313152.6406
Module start 'layout' 0.00470.0025 740.671939.4609
Module start 'content' 0.00720.6733 780.1328402.8828
Module end 'content' 0.68060.0016 1,183.01568.1563
Script end 0.6821  1,191.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4623160.0002
Check MTime0.00120.1828160.0001
Mysql Total
Database connection0.00070.095510.0007
Mysqli_queries0.643394.2992460.0140
Looping result0.00040.0545440.0000
Template Total0.651995.620.3260
Template load0.00220.315920.0011
Template processing0.649895.253820.3249
Template load and register function0.00050.070710.0005
states
state_id_array0.00150.224710.0015
state_identifier_array0.00130.196720.0007
Override
Cache load0.00170.2493250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.078410.0005
Fetch class attribute name0.00050.069110.0005
XML
Image XML parsing0.00010.018810.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00200.2956100.0002
String conversion0.00000.001340.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
1content/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
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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs