Hi There,
Is it possible to create a link to see the details of each individual record using gridfield.
Example like click on read more to see news details?
Thanks
Bunheng
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi There,
Is it possible to create a link to see the details of each individual record using gridfield.
Example like click on read more to see news details?
Thanks
Bunheng
If you click anywhere on the row in GridField you will get taken to the edit / view screen for that record as long as you've added the GridFieldDetailForm component to your configuration.
$gridField->addComponent(new GridFieldDetailForm());
Hi Willr,
Thank very much for your reply. Actually gridfield work great in Admin area. I would like to display all DataObject items on homepage and link each item if the visitor would like to see the detail of each individual item, as an example the news module on this website http://www.tslrdp.org/where-we-work/kampong-thom/latest-news/ I did on SilverStripe 2.4.
Thanks in advance if you could give any example site how to do this.
Bunheng
Displaying the items on the front end is easy. See http://www.silverstripe.org/data-model-questions/show/6215 for a thread discussing this.