⚠ 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

Power GroceryCrud



Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 08 December 2013 - 07:08 AM

Hi fellow GC forum members,

 

I hereby will like to share my new GC library - updated with 14 new features / enhancements to make it a Power GroceryCrud. With great thanks to Web-Johny to allow me create my new library over his existing one, i hereby share my extended / powered up GC.

 

Please note, i have been a GC developer using flexigrid. So all the changes that go in ... are with flexigrid. Other themes, you wonderful people are free to drop in and come up with your part of contribution to fill up the gaps in other themes. 

 

I have just plucked out the bits and pieces i have been using across all my projects and clubbed into one power pack library. It is not been tested 100% with the new combinations.. but i doubt it should fail as i have tested 80% of it in my last project - all combined.

 

Do update me in case anything crashes / falls out here - i surely will patch it so everyone can take the advantage of the same.

 

Happy GCing :)


DrPaul

DrPaul
  • profile picture
  • Member

Posted 08 December 2013 - 16:32 PM

This looks interesting!

 

I'm currently using extension_grocery_crud and gc_dependent_select in a project - can I load these over PowerGC?


web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 08 December 2013 - 20:29 PM

That's amazing [member='Amit Shah'],

 

Thank you for sharing :)


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 09 December 2013 - 03:56 AM

Hi DrPaul

 

This is the same GroceryCrud - just extended - so u can surely use the same with this one too.


DrPaul

DrPaul
  • profile picture
  • Member

Posted 09 December 2013 - 11:19 AM

In that case I'll clone my project and see how it goes with your new code.

 

I will also look into merging in the two other extras that I really need - default values for drop-down menus and multi-field search - from the code posted on the forum.


DrPaul

DrPaul
  • profile picture
  • Member

Posted 10 December 2013 - 20:12 PM

Started to tinker with applying this to my existing project, and wanted to check a couple of things, plus give some feedback regarding installing your code over an existing installation.

 

Just throwing your files at the project didn't work of course :-)

 

So I've started applying stuff incrementally, starting with flexigrid.css. You seem to have included a couple of changes from the default - body font up from 11pt to 13pt and the "view" action is no longer on each row.

 

I found that "view" didn't render some random set_relations properly - is that why you dropped the view action?

 

Then I copied over the whole assets/grocery_crud folder but the layout broke the same way it did with the "scattergun" approach - CSS problems such as actions appearing as standard buttons rather than the icons. Copying back the standard set of files solved the problem.

 

I noticed that your version of the assets folder had a lot more files in it than the standard distro, but not sure where the differences lie.

 

Can you just clarify things regarding the contents of the zip file? There are a lot of files in there, but is it a complete release as it were? In other words, can I just use the contents of your zip file, or is it intended that your files are copied over a basic GC installation?

 

Many thanks for any feedback.


DrPaul

DrPaul
  • profile picture
  • Member

Posted 15 December 2013 - 17:29 PM

Getting stuck in with a bit of file comparison, and have found a small error in flexigrid.css

 

Towards the end of the file you comment out the twitter-bootstrap buttons, but there is a comment on line 896 which needs changing:

 

/* Buttons in IE7 don't get borders, so darken on hover */

 

should be 

 

// Buttons in IE7 don't get borders, so darken on hover //


edramirez

edramirez
  • profile picture
  • Member

Posted 19 December 2013 - 20:56 PM

interesting enhancements!


syflex

syflex
  • profile picture
  • Member

Posted 29 December 2013 - 09:58 AM

i encounter the following errors after installing the POWER_grocery_crud .

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$id

Filename: views/list.php

Line Number: 30

">

 

i am fearly new .  what can the problem be