Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

how to create GridView in page in silverstripe 3?


Go to End


2 Posts   1613 Views

Avatar
anudeepgi

Community Member, 11 Posts

5 February 2014 at 6:58pm

Edited: 05/02/2014 7:03pm

How to create GrideFeild in page , I created GeidView in Dataobject with simple codes is it any way we can create Grideview in pages

Created GrideFeild with DataObject
<?php
class CarAccessorie extends DataObject {
private static $db = array('xxx' => 'Varchar',
'zzz' => 'Varchar',
'xxx' => 'Varchar'
);

public static $summary_fields = array(
'xxx' => 'Title',
'ssss' => 'Price'
);

private static $has_one = array('aaaaasType' => 'aaaaaasType','Cars' => 'Cars','Image' => 'Image');

}

Please help me to do it with Page Please

Avatar
walid

Community Member, 3 Posts

9 February 2014 at 12:22pm