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 » configuring component slots
configuring component slots [message #102502] Thu, 15 July 2010 09:05 Go to next message
el-sid  is currently offline el-sid
Messages: 64
Registered: September 2009
Location: Nairobi, Kenya
Member

hello,

i wanted to know if there is a way of configuring component slots for specific actions in the view.yml of a module. For example:
mymodule executeIndex

mymodule  executeShow


mycomponent executeMenu

mycomponent execuetSidebar 

is it possible to specify in mymodule/config/view.yml for menu to execute in index and sidebar to execute in show. If so how?

Thanks
Re: configuring component slots [message #102511 is a reply to message #102502 ] Thu, 15 July 2010 10:49 Go to previous messageGo to next message
trontank  is currently offline trontank
Messages: 179
Registered: July 2008
Location: Germany
Senior Member
Give this a try (view.yml):

all:
 # ...

indexSuccess:
  components:
     slot_in_layout: [mymodule, comp_action1]

showSuccess:
  components:
     slot_in_layout: [mymodule, comp_action2]


Where "slot_in_layout" is the component slot in your layout, "mymodule" the name of your module and "comp_action1" and "comp_action2" the component's actions to be called.
Re: configuring component slots [message #102528 is a reply to message #102511 ] Thu, 15 July 2010 14:20 Go to previous messageGo to next message
el-sid  is currently offline el-sid
Messages: 64
Registered: September 2009
Location: Nairobi, Kenya
Member

thanks. al try it out
Re: configuring component slots [message #102566 is a reply to message #102528 ] Fri, 16 July 2010 06:52 Go to previous message
el-sid  is currently offline el-sid
Messages: 64
Registered: September 2009
Location: Nairobi, Kenya
Member

worked like a charm. Thanks man.
Previous Topic:Form for many-to-many relation with extra field
Next Topic:schema.yml relation type problem
Goto Forum:
  

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