Anyone know a smart way to tell where a User is coming from (country) i.e. based on IP address or some other geotargeting method? We have 2 versions of a page where we want a certain version to be shown depending on the country of the user
Anyone have tips speeding up a Docker container on Windows? It takes quite a bit of time to run dev build for larger projects. Is it recommended to mount the project workspace in a volume first or just directly inside the container?
Also has anyone use docker-sync on windows before? Any good?
@jkersu has joined the channel
Yes you should be able to, as your
CustomElementalBlock extends off
BaseElement which extends off
You can either build the dropdown manually without scaffolding (more complicated) or just update the limit on the Field Type in your own config, depending on how many items you have in your dropdown 🙂
More information: https://github.com/silverstripe/silverstripe-framework/pull/7789
[silverstripe/silverstripe-framework] #7789 make dropdownFieldThreshold configurable on DBForeignKey
[silverstripe/silverstripe-framework] #7789 make dropdownFieldThreshold configurable on DBForeignKeyHide attachment content
What do you need the table for?
My bet is on
DataObject::getSchema() maybe? 😂
Right... this may be related (note its for versioned objects in the many-many relation so not sure if the same applies for non-versioned objects): https://github.com/silverstripe/silverstripe-versioned/issues/200
In SilverStripe 4.3.0 (at least) when you have a many_many through relationship that is versioned (on both the junction and the end objects) the "Archive" button provided through
GridFieldArchiveAction does not archive the junction object it archives the end object. As well the junction object's row remains in the database.
As a side (not sure if it's my install or not it's possible found on a very big site) the alert to confirm the action is empty in Firefox 64 at least.
The junction object would be removed but the end object of the relationship would not be.
Steps to Reproduce
Pull requestsHide attachment content