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