U4-9940 - Make it easy to get the integer Id of an item from it's Udi

Created by Sebastiaan Janssen 21 May 2017, 11:33:50 Updated by Shannon Deminick 25 May 2017, 14:00:36

Subtask of: U4-9609

Currently it's still often necessary to use an integer Id (yes, people very much still use @umbraco.library.NiceUrl(1234) etc). There's currently a few steps involved in converting a Udi back to an int Id. A Udi extension method would be good to fix that.


Sebastiaan Janssen 21 May 2017, 11:36:53

PR: https://github.com/umbraco/Umbraco-CMS/pull/1957

Shannon Deminick 24 May 2017, 05:32:26

see notes in PR

Shannon Deminick 25 May 2017, 14:00:31

There is now IEntityService.GetIdForUdi and UmbracoHelper.GetIdForUdi

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.6.2


Story Points:

Cycle: 1