Jump to content


View Button

View Button View Action Table

  • Please log in to reply
4 replies to this topic

#1 Breno

Breno

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 03 August 2013 - 10: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.photo.png

 



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 05 August 2013 - 11:42 AM

Hello and welcome to the forums Breno.

Try to use the add_action function.


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#3 Breno

Breno

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 05 August 2013 - 01: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.



#4 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 05 August 2013 - 02: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!


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#5 Breno

Breno

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 05 August 2013 - 04:04 PM

Thank you davidoster, i'll follow your tips!







Also tagged with one or more of these keywords: View Button, View Action, Table

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users