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.

Customising the CMS /

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

how to create GridView in page in silverstripe 3?


Go to End
Reply


2 Posts   521 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