Inhalte aufrufen

Profilbild

Admin Layout Page

Admin Layout Page

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
3 Antworten zu diesem Thema

#1 venkatesh.r

venkatesh.r

    Newbie

  • Members
  • 2 Beiträge

Geschrieben: 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
  • 3432 Beiträge

Geschrieben: 05 November 2019 - 11:45

Try to fix it with the numRecompilesBeforeAppRestart setting.


Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 venkatesh.r

venkatesh.r

    Newbie

  • Members
  • 2 Beiträge

Geschrieben: 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
  • 3432 Beiträge

Geschrieben: 05 November 2019 - 13:46

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

Schöne Grüße aus Düsseldorf,
Marcus Gesing