Try our conversational search powered by Generative AI!

Setting the URL segment on a media item?


Is it possible to set the URL segment on a media file?  I can't find a property for it.

Jan 16, 2015 18:57

When in forms/all-properties mode when editing a media file, you should be able to set the URLSegment via the "Name in URL" field. Although I suspect you may have additional layers to this question :).

Edited, Jan 16, 2015 20:40

I meant programatically, not from the interface, sorry.  From the API.

Jan 16, 2015 20:54

I believe the property is contentLink -

Basing this on a few examples:

Jan 16, 2015 21:12

If you cast your MediaData object to IContent you can access the UrlSegment property.

Jan 16, 2015 21:49

There does not seem to be a UrlSegment property on IContent.

Jan 16, 2015 21:54

I'm on my phone now. But there might be an IRoutable interface then.

Jan 16, 2015 22:05

Yep, that was it, thanks.

Jan 16, 2015 22:11
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.