I also tried the i18n support, but no success.

Besides, when I set a string with only one blank space (“ “) no icons are
shown.

 

It seems that there's no solution to this behaviour… blank labels not
expected.

 

  _____  

 

No success with this values:

 

label: “”

label: false

label: NULL

 

The aforementioned values show the URL.

 

  _____  

 

Yes I also notice that.
Nut it seems to be the normal behaviour of link_to() ; if no text is
precised, it shows the URL as text...
perhaps try "label: false" as in sfForm...

Le 10/08/09 10:09, silvio.cim...@televas.it a écrit : 

 

I need to have no label in some case and I tried to set something like:

 

        actions:

          _new:    { label: "" }

 

But when I set an empty value, the list shows the address link
(mysite/mymodule/new) nearby the icon.

So I tried to set:

 

        actions:

          _new:    { label: " " }

 

But this inserts an ugly blank space nearby the icon.

 

 

  _____  

 

You can choose the label in the list/edit section:

generator:
    class: ...
    param:
        ....
    config:
        actions:
            your_custom_action:
                ...
    [...]
     list:
        object_actions:
            your_custom_action:
                label: Label for your custom action in list view
    [...]
     edit:
        actions:
            your_custom_action:
                label: Label for your custom action in editing view

For the icon, I use CSS (if you look, actions from Sf like delete, new, ...
don't use img but ul li css style):
#sf_admin_container ul li.sf_admin_action_YOURACTION a {
    background:transparent url(../images/your_image.png) no-repeat scroll 0
0;
}

Le 10/08/09 09:35, silvio.cim...@televas.it a écrit : 

 

I hoped to set all my preferences into the generator.yml. Maybe I could
enable the i18n support and customize the messages (but no the icons). I
can’t explain why the admin generator doesn’t include this simple
configuration in the yaml: I think this is a common requirement.

 

Thank you, I'll try the i18n and your suggestion too.

 

  _____  

 

On the admin generator you can use a partial but i don't no if what's you
wan't but i think is usefull or use the formatter or overlord
_form_field.php and modify this template in the admin generator 

 <http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12>
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 

_form_field.php Displays a singe form field




2009/8/8 televas <silvio.cim...@televas.it>


Hi,
how can I customize label and icon in the object_actions of the
doctrine admin generator? I would show an empty label with a custom
icon, but I can't find the correct method to set the generator.yml. I
tried label: "" or label: " " or icon: /mydir/myicon.png but no one
with success.

Can you help me?

Thank you in advance

 





-- 
Tugdual SAUNIER

 

 

Controllato da AVG - www.avg.com
Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio:
08/09/09 18:10:00

 

 

-- 
Tugdual SAUNIER

 




Controllato da AVG - www.avg.com
Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio:
08/09/09 18:10:00



Controllato da AVG - www.avg.com
Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio:
08/09/09 18:10:00



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to