The CreatorCon Call for Content is officially open! Get started here.

Maintainence Page in Service Portal

ashishgupta
Tera Expert

Hi All,

I want to have a page in place that should come in picture when there is a Update Set Migration.

This page should not allow users to interact with Service Portal -- Not even by direct URL editing.

This should a page before the Service Portal and act as a barrier to interact with Service Portal's pages.

Even though a User tries to access the pages via direct URL editng. It should redirect back to this maintenance page.

3 REPLIES 3

ashishgupta
Tera Expert

fschuster .. any hints ?


Haven't put too much thought in it yet, but the first thing that comes to my mind is utilizing a system property and creating a "shadow maintenance" widget.



*EDIT* Create a widget that literally has no HTML and throw it in the header or footer of that portal - however one of the two should always be present on each page, otherwise it won't really work. In the Server Script read the value of your maintenance system property. That property could hold a value of true/false. Whenever you're in maintenance mode you can set that property to "true". Have your server script read that property and make it available to the data object (e.g. data.maintenance = gs.getProperty("mycompany.maintenanceMode")).



Your widget could then redirect the users to your maintenance page via the client script whenever the value in data.maintenance equals true.



Again: didn't really think it through, but that might be a solution. Have never done anything similar. In past customer engagements we always communicated such maintenance windows and then disabled user access for everybody temporarily - that prevents implementing such solutions.


Amruta12
Tera Contributor

Did you find any solution on this?