⚠ 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

Read-only edit screen



jgalak
  • profile picture
  • Member

Posted 14 February 2013 - 03:07 AM

Is there any way to make the edit screen read-only?

Basically, I'm working on an app that'll be a display-only interface to a DB, the visitors should only be able to look at data, not add/edit/delete. However, each record has too much info to display on the grid. I'd like to be able to show a limited number of fields, then have the user be able to call up the edit screen (or equivalent), which lists more of the fields (including more space for large text fields), but still not be able to edit the record.

Is this possible?

Thanks,
Juliean.

victor
  • profile picture
  • Member

Posted 14 February 2013 - 04:49 AM

You can use the add_action function.
Make a function which will be show data.
More info about that function is here: http://www.grocerycrud.com/documentation/options_functions/add_action

victor
  • profile picture
  • Member

Posted 14 February 2013 - 04:49 AM

And welcome to the forum! ;-)

jgalak
  • profile picture
  • Member

Posted 14 February 2013 - 04:59 AM

And then just code my own view? That works, but there's no way to leverage the existing gGRUD edit screen?

victor
  • profile picture
  • Member

Posted 14 February 2013 - 05:57 AM

create a view and use it with css from grocery crud library.