⚠ 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

Suggestion



xxaxxo
  • profile picture
  • Member

Posted 10 December 2011 - 14:37 PM

I'm suggesting this because i'm using the CRUD with databases that have multiple relations and I have to display arount 20 - 30 fields at a time and the CRUD now shows them only on 1 row - so the display becomes verry long. I've noticed that the width of a field depends on the field name, so ...
I think
display_as function should accept 1 more parram , and based upon it should switch between displaying the name or showing an icon with tooltip
something like this

display_as("field_with_verry_long_name", "Field shorten name", FALSE);

FALSE - should show the set "Field shorten name"
TRUE - should display an icon with tooltip showing on mouseover "Field shorten name"

here is an image:

[attachment=2:Untitled-2.png]

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

Posted 10 December 2011 - 14:48 PM

[quote name='xxaxxo' timestamp='1323527829' post='129']
I'm suggesting this because i'm using the CRUD with databases that have multiple relations and I have to display arount 20 - 30 fields at a time and the CRUD now shows them only on 1 row - so the display becomes verry long. I've noticed that the width of a field depends on the field name, so ...
I think
display_as function should accept 1 more parram , and based upon it should switch between displaying the name or showing an icon with tooltip
something like this

display_as("field_with_verry_long_name", "Field shorten name", FALSE);

FALSE - should show the set "Field shorten name"
TRUE - should display an icon with tooltip showing on mouseover "Field shorten name"

here is an image:

[attachment=2:Untitled-2.png]
[/quote]

This is a quite good idea. The good think is that the project is open-source so you can do whatever you like to the project. Perhaps you can have it as a plugin or something and suggested to the community at : http://www.grocerycr...coding-plugins/ .

When I say plugin I mean a patch to create for the last grocery CRUD version 1.1.4.

Tip: have you use unset_columns? it's a pretty awesome function that you can use it if you have really lot of fields at your list. You can see an example at: http://www.grocerycrud.com/crud/example/set_a_relation_1_n

xxaxxo
  • profile picture
  • Member

Posted 12 December 2011 - 08:01 AM

Thank's, (i've already created something like this but it's not like a plugin) so i'll reform it and release it for the other people.