johannes

@sminnee how would you deal with modules that have problems which you fixed in a forked branch but the maintainer has not merged them back, or hasn't tagged a version yet? You can't allways wait for them, you need the solution now...

johannes

@tonyair that would be triggered after the fields all have been created, right? So @sander_ha would need to find any HTMLEditorField in the $form and adjust it's config, since it used the default config on creation.

johannes

yeah that's because HomePage Controller inhertis the method.

johannes

@Kristian add a "results" action to your ContentController (like Page_ContentController). That should get priority over a method on an extension.

johannes

ok, got it. thanks! changed it for testing locally. Feels like a huge improvement.

johannes

ah ok. it's not part of any 3.4 release yet, correct?

johannes

3.4 uses Member::get()->byId($id) or am I missing something?

johannes

ah cool. so I guess I'll life with it till 3.5 comes out.

johannes

Just noticed that everytime I call Member::currentUser it actually fetches the Member from the Database. Would a little cacheing cause problems?

johannes

ok, bad Hack: if you do it inside an extendedCan in a Extension to DataObject it should work inside a Gridview as well. CanEdit and CanView are called before the CMS Field scaffolding.