Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

PageSearch from two different treebranches

Hi! I have a PageSearch in the ascx-file " maincatalog="<%# CurrentPage["MainCatalog"] %>" pagelinkproperty="MainContainer"> Now i want to add a search from an other part of the page tree to the result of this one. I've set a new Property to find the startpage for the search, lets call it "ExtraMainContianer". So how can I add this search to the same collection of pages? I've tried to make a PageSearch in the codebehind hoping to add the found pages with a filter but it doesn't return anything. What have I forgotten. PageSearch Search = new PageSearch(); Search.PageLinkProperty = "ExtraMainContainer"; Search.SearchFiles = false; Search.OnlyWholeWords = false; Search.MainScope = "MainScope"; Search.MainCatalog = "MainCatalog"; Search.SearchQuery = SearchQuery.Text; How does it all go together?? Anyone??
Feb 06, 2008 11:28
* 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.