Ejemplo n.º 1
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            //var viewEngineResult = ViewEngines.Engines.FindPartialView(ControllerContext, viewData.ViewName);
            //var path = ((BuildManagerCompiledView)viewEngineResult.View).ViewPath;
            //BuildManager.GetCompiledType(viewPath)
            IPage s    = null;
            var   page = _pageFactory.TryFindPage("/", out s);

            return(View(s));
        }
Ejemplo n.º 2
0
        protected virtual IPage GetPage(string url, Localization localization)
        {
            string cmUrl = GetCmUrl(url);

            using (new Tracer(url, cmUrl))
            {
                IPageFactory pageFactory = DD4TFactoryCache.GetPageFactory(localization);
                IPage        result;
                pageFactory.TryFindPage(cmUrl, out result);
                return(result);
            }
        }
Ejemplo n.º 3
0
        public IPage GetPage(string url)
        {
            _logger.Debug("GetPage - Processing request for page: {0}", url);
            IPage page;

            if (_pageFactory.TryFindPage(url.ParseUrl(), out page))
            {
                return(page);
            }

            return(null);
        }