no url_alias for the frontpage?

Author Message

James Ward

Thursday 02 October 2003 10:16:16 pm

When using url_alias for the breadcrumbs on my site, all folders and articles work correctly except for my frontpage. The name appears in the path but there is no link.

Here is my breadcrumb code (from an old demo design I think):
{section name=Path loop=$module_result.path}
{section show=$Path:item.url_alias}
<a class="path" href={$Path:item.url_alias|ezroot}>{$Path:item.text|wash}</a>
{section-else} {$Path:item.text|wash}
{/section}
{delimiter}
<span class="slash">/</span>
{/delimiter}
{/section}

I checked to make sure there was a siteurl in my site.ini and there is.

It hits the section-else for the frontpage and the current page. I know I could use a switch case to check for the frontpage item and hard code the url but I assume there is a better way that will allow for a change of the frontpage folder name.

Any suggestions?

working at www.wardnet.com
blogging at www.jamesward.ca

Aya Brea

Monday 01 December 2003 3:20:22 am

Change the ezroot operator to ezurl operator, it will work!

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:58:52
Script start
Timing: Jan 19 2025 00:58:52
Module start 'layout'
Timing: Jan 19 2025 00:58:52
Module start 'content'
Timing: Jan 19 2025 00:58:54
Module end 'content'
Timing: Jan 19 2025 00:58:54
Script end

Main resources:

Total runtime1.1056 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.0059 589.1563152.6250
Module start 'layout' 0.00590.0035 741.781339.4609
Module start 'content' 0.00941.0946 781.2422519.7813
Module end 'content' 1.10410.0015 1,301.02348.3203
Script end 1.1056  1,309.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2959160.0002
Check MTime0.00140.1238160.0001
Mysql Total
Database connection0.00080.076810.0008
Mysqli_queries1.055695.4779540.0195
Looping result0.00090.0834520.0000
Template Total1.068496.620.5342
Template load0.00200.183320.0010
Template processing1.066496.451320.5332
Template load and register function0.00010.013510.0001
states
state_id_array0.00100.091310.0010
state_identifier_array0.00260.231620.0013
Override
Cache load0.00160.1459200.0001
Sytem overhead
Fetch class attribute can translate value0.00110.097820.0005
Fetch class attribute name0.00110.100630.0004
XML
Image XML parsing0.00200.184320.0010
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00220.1959160.0001
String conversion0.00000.001040.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/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/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs