Tamara

How can I extend on GridFieldExportButton? I've tried it through DataExtension, but that's not working. I need to adjust the generateExportFileData() function in that class

Tamara

Perhaps it's easier with a custom query?

Tamara
Tamara 🍕 in #ss4 2019-06-26 12:16:46 (edited) (deleted)
  1. if ($this->B()->count() < 2) {
  2. // do something
  3. }
Tamara

@customPhpDev Siteconfig is already available in the templates. For example, if you want to get the site title which you can set in the site config, just use: $SiteConfig.Title

Tamara

@gened I'm having the same problem... Were you able to fix this?

Tamara

@palo Do you want your theme to be loaded as the first one?

Tamara

You can use renderWith('Controller_template') for that

Tamara

Got it! Adding ->removeButtons('underline') fixed it for me 🙂