Forums / Developer / Path

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

eZ debug

Timing: Jan 31 2025 01:28:44
Script start
Timing: Jan 31 2025 01:28:44
Module start 'content'
Timing: Jan 31 2025 01:28:44
Module end 'content'
Timing: Jan 31 2025 01:28:44
Script end

Main resources:

Total runtime0.2223 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.6953370.3203
Module start 'content' 0.00680.0162 958.01561,009.5625
Module end 'content' 0.02290.1993 1,967.57813,897.7109
Script end 0.2223  5,865.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00482.1696200.0002
Check MTime0.00140.6401200.0001
Mysql Total
Database connection0.00060.285610.0006
Mysqli_queries0.117252.73341410.0008
Looping result0.00170.75861390.0000
Template Total0.198989.410.1989
Template load0.00080.377910.0008
Template processing0.198089.062310.1980
Override
Cache load0.00060.257710.0006
Sytem overhead
Fetch class attribute can translate value0.00231.047010.0023
XML
Image XML parsing0.00030.155210.0003
General
dbfile0.00251.1448200.0001
String conversion0.00000.002830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs