We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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
12
Views
3
Comments
edited Apr 22, 2021 1:45AM in Customer Portal 3 comments

Summary

Extending the behaviour of the default page controller

Content

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.

Register

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