⚠ 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

Create links in cells with comma separated lists of set_relation_n_n values



DerRobert
  • profile picture
  • Member

Posted 10 January 2018 - 10:58 AM

Hi to all,

 

I am new to Grocery CRUD first want to thank for this amazing framework! As I have some years of CodeIgniter experience this frameworks seems to fit my current needs very well :-)

 

I am currently creating a simple web application for managing persons/rentors, rooms and contracts. E.g. persons <> rooms are related 1:n (one person can be associated to n rooms). In my crud instance "persons" I am showing a column "Rooms" containing the result of my set_relation_n_n result (a list of rooms of each person). 

 

Grocery CRUD seems to create this comma separated list by itself. 

 

I am wondering if it is possible to create a link for each value within this comma separated list. In my case I want to link to the /read page of my "rooms" table.

I understand callback_column() a little bit so far; also how to $row works but I can not apply callback_column to my rooms comma list.

 

Thanks to all in advance

-Rob