⚠ 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

change view of data for relationship_n_n field on view page.



fractorr
  • profile picture
  • Member

Posted 14 April 2016 - 00:10 AM

I have a relationship_n_n for add mode and edit mode which works great.  I would like to change the display of the relationship_n_n in read, so instead of it displaying the values of the from the relationship_n_n table I want the text values to be links to edit the records in the relationship_n_n table.

 

So instead of this:

 

Field Name: Option 1, Option 2, Option 4

 

 

It would be:

 

Field Name: Option 1, Option 2, Option 4

 

 

 

Ideas how I can go about doing this?

 


fractorr
  • profile picture
  • Member

Posted 14 April 2016 - 18:29 PM

I was able to figure out a way to do this but modified the core Grocery_crud_model.php file, I added a new field to the table structure called value on store the record value in it. I should probably extend the class instead of keeping the modified core file but at least it works and good for now.  I also modified the read.php theme template to show the value of the new field I added.