symfony: How to set default filter values in generator.yml

In release 1.2.7 there is no way to set the default values in generator.yml file. The workaround:

Override the method getFilterDefaults() in your <modulename>/lib/<modulename>GeneratorConfiguration.class.php and add your default values. An example:

public function getFilterDefaults()
{
return array('is_deleted' => array('text' => "0"));
}

Sven Wappler

Webentwickler, TYPO3ler, Hobby-Fotograf

Das könnte Dich auch interessieren …

1 Antwort

  1. 21. Juli 2009

    […] and add some extra actions to the Country view, but the most trickiest part is done. Have a look at this article from Sven to learn how to modify the default filter and at the Jobeet Tutorial, Chapter 12 to read how the […]

Schreibe einen Kommentar