I think you will have to modify the admin generator theme.. _list_actions.php I think ...
Georg Sorst wrote: > Hey list! > > I am currently looking for a way make the object_actions of the admin > generator conditional so that they are only displayed when the object in > that row matches a certain condition. In my case this condition is a > flag saying whether the user wants to be notified of changes to this > object. So when this flag is set there should be a "do not notify > anymore"-button and when it is not set there should obviously be a > "please notify"-button. Of course the state of this flag can be > different for each row / object. > > Extending the object with a suitable getter that returns the status of > this flag is no problem. However looking at the documentation and the > source code I haven't found any way to tell the generator.yml that it > should only display an object_action if a condition is true. I have also > found this question a number of times on the web however it was never > answered. > > So, is this possible with the current admin generator or will I have to > extend it? The change is probably rather small but I'd feel much safer > sticking with the vanilla admin generator :) > > Cheers and thanks, > Georg > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---