Previous Topic

Next Topic

Locate topic in Contents

Customizing a Group of Screens

You can also apply the same customization to a group of screens. For example, you can apply customization to all pages with screen IDs beginning with 01.04.18 - this corresponds to all pages within the My Account zone in the Control Panel. Let us consider how you can insert a banner at the top of every page in the My Account zone.

The location of the customization module is the following:

/var/opt/hspc-root/custom/screen/01_04_18.pm

The text of the customization module is the following:

package HSPC::Custom::Screen::01_04_18;

use HSPC::MT::Core;

sub customize {

my ($stream) = @_;

# banner HTML code

my $banner = <<BANNER;

<a href="http://www.mycompany.com">

<img src="/images/mybanner.gif" hspace=5></a><br>

BANNER

## add banner at the top of the page

$stream = $banner.$stream;

# return customized text

return $stream;

}

1;

Please send us your feedback on this help page