Jump to content

Photo
- - - - -

Admin Layout Page

Admin Layout Page

  • Please log in to reply
3 replies to this topic

#1 venkatesh.r

venkatesh.r

    Member

  • Members
  • PipPip
  • 16 posts

Posted 05 November 2019 - 08:41

I developed the customized plugins. In the admin page i can't  call the admin layout page in my view page.I decorated the Adminthemed attribute in ActionResult function.But still i got  

/Administration/Views/Shared/_AdminLayout.cshtml "could not be found at the following path 

Kindly help me to resolve this issue.



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3823 posts

Posted 05 November 2019 - 11:45

Try to fix it with the numRecompilesBeforeAppRestart setting.


Marcus Gesing

Smartstore AG


#3 venkatesh.r

venkatesh.r

    Member

  • Members
  • PipPip
  • 16 posts

Posted 05 November 2019 - 12:27

Still i got layout not found error.Below is my action function.
 
 [AdminAuthorize]
        [AdminThemed]
        public ActionResult GalleryEdit(int? Id)
        {
 
            GalleryEditModel model = new GalleryEditModel();
            var sbw = _GalleryService.GetById(Convert.ToInt32(Id));
 
            model.Id = sbw.Id;
            model.IsActive = sbw.IsActive;
            model.HtmlMarkup = sbw.HtmlMarkup;
            model.HtmlMarkup2 = sbw.HtmlMarkup2;
            return View(model);
        }


#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3823 posts

Posted 05 November 2019 - 13:46

There's nothing wrong with your code. I would recommend debugging ThemeableVirtualPathProviderViewEngine.ResolveViewPath.

Marcus Gesing

Smartstore AG