Skip to content

Commit

Permalink
MINOR Fix reference to class that was renamed in modeladmin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
halkyon committed Mar 23, 2012
1 parent 4da42f2 commit 769995c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/modeladmin.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ To customize the exported columns, override the edit form implementation in your
$form = parent::getEditForm($id); $form = parent::getEditForm($id);
if($this->modelClass == 'Product') { if($this->modelClass == 'Product') {
$grid = $form->Fields()->fieldByName('Product'); $grid = $form->Fields()->fieldByName('Product');
$grid->getConfig()->getComponentByType('GridFieldExporter') $grid->getConfig()->getComponentByType('GridFieldExportButton')
->setExportColumns(array( ->setExportColumns(array(
// Excludes 'ProductCode' from the export // Excludes 'ProductCode' from the export
'Name' => 'Name', 'Name' => 'Name',
Expand Down Expand Up @@ -224,4 +224,4 @@ For an introduction how to customize the CMS templates, see our [CMS Architectur
* [genericviews Module](http://silverstripe.org/generic-views-module) * [genericviews Module](http://silverstripe.org/generic-views-module)
* [Presentation about ModelAdmin at SupperHappyDevHouse Wellington](http://www.slideshare.net/chillu/modeladmin-in-silverstripe-23) * [Presentation about ModelAdmin at SupperHappyDevHouse Wellington](http://www.slideshare.net/chillu/modeladmin-in-silverstripe-23)
* [Reference: CMS Architecture](../reference/cms-architecture) * [Reference: CMS Architecture](../reference/cms-architecture)
* [Howto: Extend the CMS Interface](../howto/extend-cms-interface) * [Howto: Extend the CMS Interface](../howto/extend-cms-interface)

0 comments on commit 769995c

Please sign in to comment.