I have upgraded a website from Umbraco 7 to Umbraco 13.
As a part of my custom search endpoint I need to return a path.
The path property only returns a negative number as a string. eg. -1,1440,5787.
This is everywhere i use Ubraco Helper. In the Umbraco UI i can see the correct path.
Path is only a negative number (Umbraco helper)
Hi, I am new to Umbraco and .NET
I have upgraded a website from Umbraco 7 to Umbraco 13. As a part of my custom search endpoint I need to return a path. The path property only returns a negative number as a string. eg. -1,1440,5787. This is everywhere i use Ubraco Helper. In the Umbraco UI i can see the correct path.
Please help me.
my code:
Hi Joakim,
The Path property is the list of ID's that locate the page, looking at the code I suspect you are after the URL property instead of the Path property.
Path is a comma separated string of ID's starting with -1 which represents the root level.
I hope that helps.
Thanks
Nik
Thank you. This was a life saver.
is working on a reply...