⚠ 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. ⚠

Print with an specific layout

css print layout javascript jquery php

  • Please log in to reply
2 replies to this topic

#1 Meh



  • Members
  • Pip
  • 1 posts

Posted 20 October 2016 - 05:13 PM

Hi to all.


I'm working on a system to register old videotapes information into a database, the idea of this is to print a label for each tape within it's content. I already create the CRUD based on the database, but now I need to print each record with an specific layout so that the information fits the label design.


I have a .css file with all the measures of how it have to look, but I don't know how to relate it to the print file in Grocery CRUD


This is a sample of the layout:


#2 semsik



  • Members
  • PipPip
  • 11 posts

Posted 16 November 2016 - 08:53 PM

Maybe a bit late but i only started grocery crud recently.the api should provide the info you are looking for.

Personally i would unset print button like this

And add action like this

With the added action u redirect to your controller containing the code that generates the label you like it print.


#3 larasmith


    Advanced Member

  • Members
  • PipPipPip
  • 200 posts

Posted 23 November 2016 - 01:33 PM

Semsik is right. I use the same approach 😀

Also tagged with one or more of these keywords: css, print, layout, javascript, jquery, php

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users