⚠ 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

Add a link on specific column



fredconv

fredconv
  • profile picture
  • Member

Posted 06 September 2012 - 09:40 AM

Hi

I was wondering :
How can i add for example a link on , lets say ID , or NAME or whatever is displayed on my table?
I want to have a list of entry with a low number of informations or fields for each entry , and when i click on this the entry name (with the link passing the id) i see a new page with only this particular entry and with all the other fields from the table where id = the id passed.

I thought add_action function should do the trick but it add an extra item in the action column. but what if i want one of the existing column to be clickable ?
thanks.

Frederic.

carlinchisart

carlinchisart
  • profile picture
  • Member

Posted 06 September 2012 - 13:27 PM

hi @fredconv, i think you have to use callback_columns() function, see
http://www.grocerycrud.com/documentation/options_functions/callback_column

fredconv

fredconv
  • profile picture
  • Member

Posted 06 September 2012 - 15:07 PM

Hi
Thanks for the answer.
I was now trying to use this function you mention, but this has trigger a new pb i ve mentioned in another thread in this forum which you can find here.
/topic/843-callback-column-weird-behavior/
i ll close this one since it seems the answer to add a link on the column i want is callback_column()

Thanks you for your help.