kinglozzer

I don’t think that’s possible, do you need to do it for any specific reason?

taocean

@kinglozzer yes sorry was just about to add that. Aiming to customise for while using the cms

firesphere

In the code however, you can with SiteTree::singleton()->generateURLSegment($MyVar)

kinglozzer

If you mean in the CMS, I don’t think you can edit that

taocean

Currently have the full namespace of a dataobject in the url when editing a dataobject

taocean

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

taocean

Is there a way to define the url segment for a data object in ss4?

dorsetdigital

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

dorsetdigital

But you need to be careful with the logic... because that can often just fail