⚠ 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

View Button



Breno

Breno
  • profile picture
  • Member

Posted 03 August 2013 - 22:48 PM

Hello, i'm getting start to use Grocery Crud and i'm developing a application.

My question is, how to change the action view(magnifying glass), to show a name of a table related instead the id?

Thanks and sorry for my english.[attachment=641:photo.png]

 


davidoster

davidoster
  • profile picture
  • Member

Posted 05 August 2013 - 11:42 AM

Hello and welcome to the forums [member=breno].

Try to use the add_action function.


Breno

Breno
  • profile picture
  • Member

Posted 05 August 2013 - 13:39 PM

Hello davidoster, trank you for reply me.

So, that fuction(action view) is of Grocery Crud v1.4 and is native, like the delete action, add action, update action.

But, the action view, show the id of the table, like the image above, i want show the name ..

The file read.php, is in assets/themes/datatables/views and i think is that file what contains the code to show the id.

If not, i will try to add a action to show my data.

Thank you again.


davidoster

davidoster
  • profile picture
  • Member

Posted 05 August 2013 - 14:39 PM

If you want you can disable the view function by using the unset_read().

And then you can use the add_action and make your own even with the same icon!


Breno

Breno
  • profile picture
  • Member

Posted 05 August 2013 - 16:04 PM

Thank you davidoster, i'll follow your tips!