Path

Author Message

Jacques Feix

Thursday 08 March 2007 2:57:00 am

Hi everybody,
I have createdmy own extension, but the path is always wrong.
I use this line

 
$Result['path'] = array(array('url' => '/site/../','text' => 'my text') );

but nothing happens..

Heath

Thursday 08 March 2007 5:03:36 am

Here is one example with no url

$Result = array();
$Result['path'] = array( array( 'url' => false, 'text' => 'Database Query Manager' ) );

Here is one with two levels and without a url

$Result['path'] = array( array( 'url' => false,                                    'text' => 'Order ' ), array( 'url' => false, 'text' => 'Refund Completed' ) );

I would guess that the string you pass as url is not the right text string depending on your url style.

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jacques Feix

Thursday 08 March 2007 5:45:11 am

It doesn't work, only the root is showned in my path ...

strange isn't it ??

Jacques

Heath

Thursday 08 March 2007 6:01:29 am

If you could give a real example of the url you would like displayed. I'm fairly certain I could point out how to do so.

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jacques Feix

Thursday 08 March 2007 6:10:08 am

I would like to show for example :

home/my account/address book

with 'home' linked to '/'
'my account' linked to '/account'
'address book' linked to '/account/addressbook'

Heath

Thursday 08 March 2007 6:15:35 am

Try ...

$Result['path'] = array( array( 'url' => '/',
 'text' => 'Home' ), array( 'url' => '/account',
 'text' => 'My account' ), array( 'url' => 
 '/account/addressbook', 'text' => 'Addressbook' ) );

Updated: Fixed syntax error typo

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jacques Feix

Thursday 08 March 2007 6:22:28 am

Nothing better :(
The path calcul is automatized (from the object parsed)
maibe it is not overridable ...

Nice to help me, thank you Heath

Heath

Thursday 08 March 2007 6:29:53 am

These examples are from, http://ezpedia.org/wiki/en/ez/module

If you were developing a custom module,
and if you had properly built your base module extension correctly
and you were working on your module's view php code.

This information would be helpful to you.

Yet if your only working in templates, this information may not be directly applicable...

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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 21 2025 20:50:36
Script start
Timing: Jan 21 2025 20:50:36
Module start 'layout'
Timing: Jan 21 2025 20:50:36
Module start 'content'
Timing: Jan 21 2025 20:50:37
Module end 'content'
Timing: Jan 21 2025 20:50:37
Script end

Main resources:

Total runtime1.4479 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.8047151.1797
Module start 'layout' 0.00550.0032 739.984436.5781
Module start 'content' 0.00871.4382 776.5625619.1328
Module end 'content' 1.44690.0010 1,395.695319.9063
Script end 1.4479  1,415.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2238160.0002
Check MTime0.00120.0862160.0001
Mysql Total
Database connection0.00090.065010.0009
Mysqli_queries1.387295.8055720.0193
Looping result0.00060.0443700.0000
Template Total1.408997.320.7044
Template load0.00200.139220.0010
Template processing1.406897.161620.7034
Template load and register function0.00020.014210.0002
states
state_id_array0.00150.101010.0015
state_identifier_array0.00080.055920.0004
Override
Cache load0.00180.1212460.0000
Sytem overhead
Fetch class attribute can translate value0.00100.067120.0005
Fetch class attribute name0.00090.064090.0001
XML
Image XML parsing0.00070.048420.0004
class_abstraction
Instantiating content class attribute0.00000.0020120.0000
General
dbfile0.00100.0662170.0001
String conversion0.00000.000740.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 36
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs