Heya Gav, It is not currently possible to add custom buttons to the top of the objectadmin. lButtons allows you HIDE buttons effectively. ie. lButtons="add,delete" will only show the add and delete buttons. The default is all buttons the user has permission for.
That being said, you can add custom actions to the action dropdown for each item by using lCustomActions="test button" At the top of the file (above the <ft:objectAdmin /> tag you can then capture this event using <ft:processForm action="test button" /> and do what you want to do there. Kind regards -- -- Matthew Bryant Product Development Manager Daemon Internet Consultants Adobe Solutions Partner http://www.daemon.com.au/ p. 02 9380 4162 f. 02 9380 4204 On 05/03/2008, at 12:31 AM, Gavin Stewart wrote: > > >> The lButtons attribute should do it. A list of the custom button >> values you >> need. Use <ft:processform action="One of the values"></ >> ft:processform> to >> capture the action. form.lSelectedObjectIDs should have a list of the >> selected objects. > > Hi Blair, > > Thanks for that but it doesn't seem to work. Here is my code > > <ft:objectAdmin > title="Products" > typename="products" > ColumnList="name,price,status,catProducts" > SortableColumns="name,price" > plugin="shoppingcart" > aCustomColumns="#aCustomColumns#" > lFilterFields="name,price" > lButtons="TestButton" > sqlorderby="" /> > > When i add lButtons="TestButton", all the default buttons disappear > and 'TestButton' doesn't appear either. I am running 4.09, is there > something i need to upgrade? > > Cheers, > Gavin > > > -- > Message protected by MailGuard: e-mail anti-virus, anti-spam and > content filtering. > http://www.mailguard.com.au/mg > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" 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/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
