This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » Custom interactions only on selected rows
Custom interactions only on selected rows [message #103428] Mon, 02 August 2010 17:58 Go to next message
lukas.kudela  is currently offline lukas.kudela
Messages: 1
Registered: August 2010
Junior Member
Hi!


I am a novice symfony user facing a challenge of adding a custom interaction to a list of objects (records) generated using module's generator.yml. Problem is I need to add this interaction only to objects satisfying certain condition.

I have read the relevant chapter from "A Gentle Introduction to symfony" (Admin Generator). However, I didn't find a solution there. I would greatly appreciate any advice or a suggestion as to what documentation I should look into.


Thanks!
Re: Custom interactions only on selected rows [message #103430 is a reply to message #103428 ] Mon, 02 August 2010 18:31 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Welcome to the forum.

Have a look at this section, which shows which parts of the admin generator can be overridded. At a guess, it is either "_list_td_actions.php" or "_list_td_batch_actions.php".

First I would advise you to try putting each of these in turn, empty, into your templates folder of your generated admin, to see what disappears Smile

Then, I guess also that you can obtain the standard code for each of these in the symfony core (you'll have to search for it), copy it in and then wrap an if block around it.

[Updated on: Mon, 02 August 2010 18:33]


Remember Palestine
Previous Topic:Drop Down Values from query
Next Topic:sfGuardDoctrinePlugin and sfGuardUserProfile : I can't add a new user
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software