You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Extending the default Page controller

Received Response
edited Jun 7, 2022 1:22PM in General Technical Discussions 3 comments


Extending the behaviour of the default page controller


Hi all,

I have some business logic I need to implement in all of my CP pages.  The logic is to check Service Cloud for a maintenance config flag, and retrieve a MessageBase if the flag has been set.  If there is the flag set, the pages will then instantiate a widget which does the actual display of the MessageBase.  If there is no config flag set, the page will render as normal.

Rather than putting the code in a library, and then copy pasting a php call to the method on every page, I'd like to do the check and have the controller pass the outcome to the CP page, who will then action that.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!