Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

PageDataCollection and Global.EPDataFactory.GetChildren

Vote:
 
Hi, I'm executing this piece of code: PageDataCollection oPages; PageReference oParent; oParent = Global.EPConfig.StartPage; oPages = Global.EPDataFactory.GetChildren(oParent,AccessLevel.Edit & AccessLevel.Publish); In some cases GetChildren just returns an empty collection (the object oPages),and in other cases it return the corect collection of children. Why? Hope this is enough information to start at thread.
#17512
Apr 27, 2006 9:25
Vote:
 
An addition to this post. We are running EPi 4.60 R1 on a Globalized site on developer computers running Win XP Pro SP2, .NET 1.1 The code is run in a PageTree pugin that doesn't use the EPi infrastructure. Wee need to get data from pages that are in the page tree. All environments are running the exact same code from Source safe. The error we are are expecting only apears in 2 of 5 tested computers/environments. In the remaining 3 systems the EPiServer.Global.EPDataFactory.GetChildren(PageReference) (used without assigning a extra LanguageBranch parameter) This method is supposed to return the Child pages in the currently used languageBranch but as we lack the information in this plugin seems to ommit the language cookie used by the Edit mode and returns the pages in the browser/system language. If we used the same code in all systems using the EPiServer.Global.EPDataFactory.GetChildren(prCEPContainer, EPiServer.Core.LanguageSelector.MasterLanguage()); all systems return the correct amount of pages.
#18324
May 05, 2006 9:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.