Umbraco.GetContentById - How to load "stuff" other than content?
I'd like to load stuff other than content in my macro. I'm very new to Umbraco but I've managed to create my own Hive provider from which I'd like to load content. As a start I first tried to load a template using the Umbraco.GetContentById helper but it seems this helper only accepts "content://" URIs.
How can I load stuff like "storage://" or "mycustomhive://"?
Editing the post didn't work, but I forgot to mention that the "mycustomhive://" uri-pattern is already registered in a config file and showing up in a custom section in my Umbraco backoffice using a custom tree provider, so this already "works"
@Jeroen: As stated the helper only works when I pass a URI like: "content://p__nhibernate/v__guid/00000000000000000000000000001048". If I pass a URI which is provided by a different HiveProvider like the I.O. provider which provides "storage://xxx" or preferrably my custom HiveProvider which provides "mycustomhive://xxx" data an error is thrown: "Parameter 'other' must be of type Guid to convert to a Guid CLR type, but it is 'Uri', with value: xxx"
Umbraco.GetContentById - How to load "stuff" other than content?
I'd like to load stuff other than content in my macro. I'm very new to Umbraco but I've managed to create my own Hive provider from which I'd like to load content. As a start I first tried to load a template using the Umbraco.GetContentById helper but it seems this helper only accepts "content://" URIs.
How can I load stuff like "storage://" or "mycustomhive://"?
Editing the post didn't work, but I forgot to mention that the "mycustomhive://" uri-pattern is already registered in a config file and showing up in a custom section in my Umbraco backoffice using a custom tree provider, so this already "works"
I think you can use some the examples which are here: http://our.umbraco.org/documentation/v501/Reference/Templating/Umbraco-Helpers/
Jeroen
@Jeroen: As stated the helper only works when I pass a URI like: "content://p__nhibernate/v__guid/00000000000000000000000000001048". If I pass a URI which is provided by a different HiveProvider like the I.O. provider which provides "storage://xxx" or preferrably my custom HiveProvider which provides "mycustomhive://xxx" data an error is thrown: "Parameter 'other' must be of type Guid to convert to a Guid CLR type, but it is 'Uri', with value: xxx"
is working on a reply...