andy_a

Does anyone know how to set a CORS-Header on the silverstripe 4 restfulserver? In the silverstripe 3 module, there was a configuration for that...

meldgaard

@wmk Found it out 🙂 Thought "After" in the YML meant what it should be loaded after 😄

👍 (1)
meldgaard

@wmk in the YML file. Should i refernce the folder name, like this: modulename/* or how should it reference the other module?

deschebbs

@wmk it is a new project and i will check fluent. thanx so far!

wmk

@meldgaard make sure, your module modifies the cmsfiels after the other module. Should be possible if you tell your config.yml to be run after the other module. Hopefully... If it doesn't work, you can subclass the module's class and use injector to use your class instead

wmk

Is it a new project or do you upgrade an existing site with translatable?

wmk

@deschebbs hmm, translatable.. It's deprecated in 4.x, you should use fluent.

wmk

@deschebbs if you start with a blank composer.json you need to tell it what you "require" for your project. Then composer installs it. A shortcut would be composer create-project vendor/package ./path/to/project-root, I personally don't like that so much, dunno why

deschebbs

other question: does translatable work with silverstripe 4.2.1 or do i have to install 4.0 if i want to use it?

meldgaard

Hi. Im building a module that add's new functionality to another module. The base module add's an GridField where users can edit the content of this gridfield. I need to remove/hide this Gridfield, as im moving this functionality over into a different ModelAdmin. I have tried to use an dataextension with removebyname, but it's not working. The gridfield from the module thats inserted is also inserted via an Dataextension.