⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

add_action not working as expected



webdev23
  • profile picture
  • Member

Posted 29 October 2013 - 16:21 PM

I have worked through the tutorials and it works without adding a custom add_action. When I add:

$crud->add_action('More', '', 'demo/action_more','ui-icon-plus');

nothing changes in the data grid. It still just displays the three icons, a magnifying glass, a pencil, and a red plus sign.

 

How do I add custom links to that?

 

Thanks.


webdev23
  • profile picture
  • Member

Posted 04 November 2013 - 13:52 PM

I have worked through the tutorials and it works without adding a custom add_action. When I add:

$crud->add_action('More', '', 'demo/action_more','ui-icon-plus');

nothing changes in the data grid. It still just displays the three icons, a magnifying glass, a pencil, and a red plus sign.

 

How do I add custom links to that?

 

Thanks.

Anyone?


jrierab
  • profile picture
  • Member

Posted 04 November 2013 - 16:01 PM

Anyone?

Put a valid link to an image in the second parameter. I believe it is required in the default theme.


webdev23
  • profile picture
  • Member

Posted 04 November 2013 - 19:25 PM

worked - thanks. I did have to do a site_url() call and change the location of the img but... it worked.