Message of the day:
SS 4.4.0-RC1 is out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4.4/docs/en/04_Changelogs/4.4.0.md
SilverStripe 4 related information and questions.
I don’t think that’s possible, do you need to do it for any specific reason?
@kinglozzer yes sorry was just about to add that. Aiming to customise for while using the cms
In the code however, you can with SiteTree::singleton()->generateURLSegment($MyVar)
If you mean in the CMS, I don’t think you can edit that
Currently have the full namespace of a dataobject in the url when editing a dataobject
I thought it was via config api, but haven't found something there yet. I was assuming something like
$url_segment = "object-path" or similar
Is there a way to define the url segment for a data object in ss4?
It depends a lot on the structure of your data. I usually find that if I can state the query I need in plain English, then it makes the filter conditions easier to work out
Since Myfield can't be more than one value 🙂
But you need to be careful with the logic... because that can often just fail