Jump to content


Sebastian Zapato Blanco

Member Since 26 Oct 2014
Offline Last Active Nov 10 2014 02:49 PM
-----

Topics I've Started

Export & print buttons not working

10 November 2014 - 04:53 AM

Hello guys,

I Installed grocery crud and everything is working fine, but the export and print buttons don't have any functionality.

Do I have to modify something to make these buttons work?

My controller is very simple and looks like this:

...$this->grocery_crud->set_table('notificaciones');

$output = $this->grocery_crud->render();
        
$this->load->view('laflorida.php',$output);  
...

Thanks for the help!


Custom rows, multiple images upload

26 October 2014 - 05:02 PM

Hi,

first of all, I congratulate the devs because grocerycrud has saved me a lot of time. Great work!
The only thing I don't like is, there is not much transparency while rendering the tables. I haven't thought of a better way of doing it though.

 

Now I am developing a backend for a client. I have 2 tables: Business (name, email, address, etc.) and Products (name, keywords, pictures)

 

The first problem is, there is a boolean field (tiny int) in the Business table called "activated", so we can enable/disable a business from the back end. So I can add a custom action with GC to toggle this value. But if I wanted o show a green image when the business is enabled, and a red image when it is disabled, how can I do that?

 

The second problem is, the products can have multiple images... what would be the simplest way to do that with GC? I can create a custom action, say "update pics" and then create a controller myself. But if I wanted to show a thumb of the images in the GC generated tables, how should I proceed?

 

Thank you in advance and all the best from Chile 

 

 


Custom rows, multiple images upload

26 October 2014 - 05:01 PM

Hi,

first of all, I congratulate the devs because grocerycrud has saved me a lot of time. Great work!
The only thing I don't like is, there is not much transparency while rendering the tables. I haven't thought of a better way of doing it though.

 

Now I am developing a backend for a client. I have 2 tables: Business (name, email, address, etc.) and Products (name, keywords, pictures)

 

The first problem is, there is a boolean field (tiny int) in the Business table called "activated", so we can enable/disable a business from the back end. So I can add a custom action with GC to toggle this value. But if I wanted o show a green image when the business is enabled, and a red image when it is disabled, how can I do that?

 

The second problem is, the products can have multiple images... what would be the simplest way to do that with GC? I can create a custom action, say "update pics" and then create a controller myself. But if I wanted to show a thumb of the images in the GC generated tables, how should I proceed?

 

Thank you in advance and all the best from Chile