Hi Marc, sorry for the super late reply, I'm trying to list multiple document types from many sites. So basically what I'm trying to do is look at an entire umbraco installation and iterate through items of documenttype1, documenttype2 and documenttype3 at the same time.
List pages of mutliple document types in multisite environment
Hi,
I'm trying to list pages of a few different doc types from a multi site environment. I can't seem to get the root node of the installation though.
Anyone know the correct version of " var root = Library.NodeById(-1);" for MVC?
Hi Amir
Will get you the homepage node of the particular site you are in, within a multi-site environment and..
var homePages = Umbraco.TypedContentAtRoot();
will get you an IEnumerable of IPublishedContent containing the homepage of each site...
if that helps?
regards
Marc
Hi Marc, sorry for the super late reply, I'm trying to list multiple document types from many sites. So basically what I'm trying to do is look at an entire umbraco installation and iterate through items of documenttype1, documenttype2 and documenttype3 at the same time.
-Amir
is working on a reply...