c# - Umbraco - Select node by URL -
i'm having issues umbraco when trying access node it's url.
i've been trying form xpath query select on url, i've no idea how that, , in api 'dynamic' i'm finding impossible dig deeper other methods.
the "link document" property in umbraco editor shows path "/links/link-regions/link-region-1/". location in editor "/data/links/link regions/link region 1".
i suspect it'll this, cna't make work:
//*[@url='/links/link-regions/link-region-1/']
i want know have node providing either of these values , no others. i've been trying days no avail, please help!
if you're using umbraco 4.11 or later, there new set of apis allow retrieve strongly-typed content (as opposed dynamic - can frustrating when trying evaluate types when debugging).
umbracocontext.current.contentcache.getbyroute(string url)
should want.
Comments
Post a Comment