alt

one works, the other one doesn't. As far as I can tell, it's because /saml/metadata is prompting for basic auth on the broken site

alt

I've got a customer who has two sites set up to authenticate via saml

alt

does anyone here know much about silverstripe-saml?

alt

hmm. I see looking at the code that getSearchContext has been deprecated. I wish docs were updated when things are deprecated!

jkersu

Have a look at this maybe instead. Might work for your usecase: https://docs.silverstripe.org/en/4/developer_guides/search/searchcontext/ @alt

Show 2 attachment(s)
docs.silverstripe.org  
Scaffolding with SearchContext

Developer documentation for the Silverstripe CMS and framework.

docs.silverstripe.org  
Scaffolding with SearchContext

Developer documentation for the Silverstripe CMS and framework.

Hide attachment content
alt

I managed to hack something together, $filterHeader->getSearchContext($gridField)->getFields()->push(CheckboxField::create('IncludeArchived', 'Include archived events'));

alt
  1. public function getSearchContext()
  2. {
  3. $context = parent::getSearchContext();
  4.  
  5. $context->getFields()->push(new CheckboxField('q[IncludeArchived]', 'Include archived events'));
  6.  
  7. return $context;
  8. }
alt

I'm trying to add an item to the search form in Modeladmin as per https://docs.silverstripe.org/en/4/developer_guides/customising_the_admin_interface/modeladmin/#displaying-results however it doesn't show up. any ideas?

Show 1 attachment(s)
docs.silverstripe.org  
ModelAdmin

Developer documentation for the Silverstripe CMS and framework.

Hide attachment content
alt

updateFrontEndFields(&$fields) works, but gives warnings saying the declaration should be compatible with DataExtension::updateFrontEndFields($fields)

alt

I tried updateFrontEndFields($fields) but this didn't seem to have any effect when adding new fields

alt

hey, what's the correct way to have an extension update frontend fields of a dataobject?