request handler

Rita Mikusch asked on January 25, 2017 18:31

Deleted question. Had my if-statement brackets in the wrong place. Ugh, I need some caffeine!

Recent Answers


Rita Mikusch answered on January 25, 2017 18:58

Ugh nevermind ... brain isn't away yet and I had the if-statement brackets in the wrong place :(.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on January 25, 2017 19:01 (last edited on January 25, 2017 19:03)

You can try to use this http://devnet.kentico.com/docs/8_1/api/html/T_CMS_PortalEngine_ViewModeEnum.htm

        switch (CMS.PortalEngine.PortalContext.ViewMode)
        {
            case ViewModeEnum.LiveSite:
               //
                break;
            case ViewModeEnum.EditLive:
              //
                break;
            case ViewModeEnum.Preview:
             //
                break;
        }
0 votesVote for this answer Mark as a Correct answer

Rita Mikusch answered on January 25, 2017 19:04

This is useful to know, thank you!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.