Share » Forums » Developer » Toolbar override problem

Toolbar override problem

Toolbar override problem

Monday 21 August 2006 11:26:15 am - 9 replies

Modified on Monday 21 August 2006 11:27:18 am by Pascal France

Author Message

Kristof Coomans

Monday 21 August 2006 11:06:25 pm

Hi Pascal

Did you forget to add menu_droite_pascal_description to [Tool].AvailableToolArray[] ?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Monday 21 August 2006 11:53:01 pm

Hi Kristof,

I use ezp 3.8.3 and it is a multisite (each site has its database).

In my settings/siteaccess/public_siteaccess/toolbar.ini.append.php I have exactly what is written in my previous post.

When I edit menu_droite_pascal in the admin interface, the french descriptions are not displayed.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Marcin Drozd

Tuesday 22 August 2006 1:12:00 am

Hi Pascal
I have the same problem with the 3.6 and 3.7 versions too, but I havent found the solution yet.

http://ez-publish.pl

Kristof Coomans

Tuesday 22 August 2006 3:52:22 am

Hello guys

Don't pay attention to my previous post, I was completely wrong :-)

The [Tool] blocks themselves are read either from the siteaccess toolbar.ini.append or from the default toolbar.ini (see kernel/visual/toolbar.php line 56-63 eZ publish 3.8.3), but the [Tool_description] blocks are only read from the default toolbar.ini (line 250-253).

Try to replace line 250-253 with this code:

    if ( $iniAppend->hasGroup( "Tool_" . $toolName . '_description' ) )
    {
        $actionDescription = $iniAppend->group( "Tool_" . $toolName . '_description' );
    }
    elseif ( $ini->hasGroup( "Tool_" . $toolName . '_description' ) )
    {
        $actionDescription = $ini->group( "Tool_" . $toolName . '_description' );
    }

Does it work now?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Tuesday 22 August 2006 5:25:25 am

Hi Kristof,

It works perfectly !
Thanks a lot.

A last thing: with left toolbar the image of the tool is never showed in the admin iterface (Design->toolbar)

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Marcin Drozd

Tuesday 22 August 2006 5:25:58 am

Hi Kristof
Yes, it does
Thank U, but one more question:
Is it a bug or purposeful action? Why doesn't it open in standard functionality?

http://ez-publish.pl

Marcin Drozd

Tuesday 22 August 2006 5:35:18 am

Hi
Pascal, Im not sure what U want to get, but I have a guess, and try change name of your image file like: mytool_line.png (instead of mytool.png)
or modify visual/toolbar.tpl, because there is:

{section show=eq($toolbar_position,right)} {* <-- only for right toolbar without '_line' *}
        <img src={concat( "toolbar/", $Tool.name|wash, ".png" )|ezimage} alt="{$Tool.name|wash}" />
    {section-else}
        <img src={concat( "toolbar/", $Tool.name|wash, "_line.png" )|ezimage} alt="{$Tool.name|wash}" />
    {/section}

<i>(Im really a slow writer)</i>

http://ez-publish.pl

Kristof Coomans

Tuesday 22 August 2006 6:44:36 am

I guess this is a bug, I report it now: http://ez.no/bugs/view/8864

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Tuesday 22 August 2006 7:21:55 am

Hi Marcin,

Thank a lot.
By changing the visual/toolbar.tpl all works fine.

@Kristof,

Couldn't be possible ezp manages left toolbar by default and the right or left empty spaces when we are not in the show_subtree of the tools ?

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu