admin-generator

Create a new delete object_action in Symfony 1.4's admin generator

I'm using Symfony 1.4/Doctrine's admin generator. There's a list of questions and I'd like to be able perform a custom object_action on each of them. What I'm looking for is to mimic the _delete object action but doing some calculation before that. So I created a new action : public function executeListDeleteAndRecalculate(sfWebre...

How to "order by" a sfWidgetFormDoctrineChoice in the Admin Generator

I'm using Symfony 1.4 and Doctrine. Let's say I have 2 classes : a Brand and a Product. When I create a new product in the Admin Generator based admin, I'd like to choose a brand from a dropdown list. The Admin Generator is doing that for me, automatically creating a sfWidgetFormDoctrineChoice. The problem is that the brands are order...

What's the best way to customize / add pages to the admin generator?

I'm using Symfony 1.4 and Doctrine. My application's backend was built using Symfony's admin generator. It works great when I want to display basic stuff. But tehre's not a lot of documentation on how to enhance it and add new pages. Let's take an example: I want to list published items on one page and to-be-published items on another...

Customising Symfony Admin Generator Form

Hi, I've generated the backend of my application, and am now just 'jazzing' the forms up (adding correct labels, validation rules etc). One thing I'd like to do is add a map (Google) which updates the marker as an address is entered into the form, then allows the user to drag it to correct the lat/lng should it be a little off. My que...

symfony admin generator table_method

When configuring my admin generator I created a table_method for my list view in order to join the correct tables and so on. However, in my edit post / create post sections I have a rather extensive dropdown that is not joined at the moment. Is there an equivalent to table_method that I can use for these situations to specify the method...

Symfony 1.4: doctine i18n problem

Hi Volks, I have a weird problem with my i18n doctrine schema and i.a. the admin generator. (Please look at the edit part below first) The schema looks like: CargoSize: connection: doctrine actAs: Timestampable: ~ I18n: fields: [name, linkname, seoname, description] tableName: com_cargo_size...

Admin generator : why can't I display the state of an article, instead of state_id ?

I'm doing a blog engine in Symfony. Here's part of my schema : Content: connection: doctrine tableName: ec_content columns: id: type: integer(4) fixed: false unsigned: true primary: true autoincrement: true (...) relations: Author: local: author_id foreign: id type: one ...

Override executeIndex in admin modules

In the administration generated by symfony, how do I override the method executeIndex() ? I want to list only the items that have a specific state, and all I found in cache/backend/dev/modules/auto.../ was : $this->pager = $this->getPager(); How do I change the query used by the pager ? ...