⚠ 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 forum is read-only and soon will be archived. ⚠

Add print action in list view or on read page

print add_action read

  • Please log in to reply
2 replies to this topic

#1 Nitin Thokare

Nitin Thokare


  • Members
  • PipPip
  • 25 posts

Posted 27 May 2014 - 08:34 AM

I'm a new user of GC and can't really understand in depth use of callback actions.


Can anybody answer the question at following link?




Basically I want to add print action to each record (row) in a list view (table)...

#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

Posted 27 May 2014 - 01:24 PM

Hi Nitin Thokare


well there's simple solution to your issue...

GC have add_action - http://www.grocerycr...ions/add_action

here if u can give your url that will print the row.. if its simple .. u can just say $crud->add_action('print', 'path_to_icon', 'controller_name/print');

it will add id to the url automatically.

if in case you want to have a custom url - u can have take advantage of url_callback


As for the print button in the view / read ...

u need to add the same and its base functionality in the gc template (for ex. flexigrid) .. which ever u prefer for the same.

#3 kat



  • Members
  • Pip
  • 3 posts

Posted 17 January 2018 - 09:18 AM

hi Nitin Thokare Amit Shah do you find the solution of your problem i want to do the same thing

Also tagged with one or more of these keywords: print, add_action, read

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users