IBM BPM, V8.0.1, All platforms > Customize and rebranding interfaces > Customize Process Portal > Customize Process Portal spaces > Customize banners > Customize banner elements and appearance > Create custom logout behavior

Running custom code in a Process Portal space at logout

If you want to run custom code after the user clicks the Logout link but before the widgets are unloaded from the page, you can add the function customLogoutFunction to the JavaScript section in the banner.html file.

This procedure assumes you have already created the code for the custom logout behavior, and that the code uses only declared public APIs (available in the Lotus Mashup Center documentation).


Procedure

  1. Create a copy of the banner content file folder.
  2. Open the banner.html file in the copy of the folder created.

  3. In the JavaScript section, add the global customLogoutFunction to define the new logout behavior.
    <script type="text/javascript">
    //programmatically add a link element to load css
    linkElement.rel = "stylesheet";
    linkElement.type = "text/css";
    linkElement.href = ibmCfg.themConfig.themRootURI + "/banner/bspace/banner.css";
    headElement.appendChild(linkElement);
    
    customLogoutFunction = function() {
    // add custom logic here} </script>
  4. Save the banner.html file.


What to do next

Deploy the banner files so that the customization is visible in the space.

Create custom logout behavior in Process Portal spaces


Related tasks:
Deploying a custom banner to a Process Portal space