I made a customization of a Doctrine admin generated list form to let
the end user select which fields appear in the list view in a case
where there are too many fields to show them all.

The process is:

 1 Add a form in the footer partial with check boxes for the fields to
select

 2 Handle the post in a custom action. This action places the fields
array in the session and should refresh the _list_td_tabular.php
partial or set a flag stating that it should be refreshed because the
fields are hard coded in that template.

 3 Modify the getListDisplay() method of the xxxGeneratorConfiguration
class so that it gets its field list from the session if there is one.

My problem is in step 2, to update the _list_td_tabular.php partial.

The partial normally only gets updated if you modify the fields in the
generator.yml file, but not if you modify the fields from the
getListDisplay() method.

The best I could find so far is to clear the whole cache in step 2,
but it is quite overkill to just update one partial or one module.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to