Lucky Dip Logo
Powered by PlusNet. PlusNet broadband.
Patrick's Lucky Dip
Home > Portal > Portal Tutorial - Configuring the Banner

Patrick Haston
13 November 2007
(updated 15 November 2007)

Portal Tutorial - Configuring the Banner

Introduction

If you've completed the first tutorial, you will have a page something like this:

Screenshot of the newly created Page Group

You will also have created a new schema (DEMO) and database provider (Demo), and granted piviliges on the EMP and DEPT tables in the SCOTT schema to the DEMO user.

The page looks like an Oracle page, and unless you happen to work for Oracle, then I imagine that you wish to put your own identity on it. Here's how you do it.

First of all you'll need a logo. Here's one I made earlier:

Logo for the Demo Application titled DEMO PORTAL on a yellow background

I've given it a yellow background deliberately so you can see how Portal positions it. I recommend that you colour the background of your logo the same as the background on your page to give you some flexibility in positioning.

Finding the Banner

When you create a new Page Group, Portal very kindly creates a default banner for us. To edit this, switch to the navigator and click on the Page Groups tab. Find the Demo Page Group and click on the title. You should see the following:

Screenshot of the navigator showing the available options inside a page group

If you click on the Navigation Pages link you will find the link to the banner:

Screenshot of the Navigation Pages for a page group

Avoid the temptation to click on tbe Demo:Banner title (if you do, use the back key) and instead click on the Edit link just to the right.

Editing the Banner

The default banner looks something like this:

Screenshot of the default banner in edit mode

First of all, create a new region below the bottom one (which looks empty but isn't) by clicking on the icon with a down arrow (Icon to create a Region below). We're going to delete a few of the regions, and it's handy to keep a full-width region for later.

Let's get rid of the surplas regions. Use the delete icon (Icon to delete a Region) to remove the four regions marked below (but not the one you've just created). When prompted, delete the region contents too.

Screenshot of the regions to be deleted

Now we can change the Oracle logo for our own. Oracle use a pencil image (Icon to edit an Item) for their edit icon, so click on the edit icon just above the word "Server" on the Oracle logo. Click on the browse button beside the image and select your lovely logo (I'm sure you can do much better than me).

You can change the properties of a region using the region's edit tool (Icon to edit a Region). Use this on your newly created region, choose the Items option and click apply. Scroll down a bit and change the default settings, setting Display Name to "Stylesheet goes here", Space Between Items to "0" and Space Around Items also to "0":

Screenshot of the edit region properties

You will have guessed that we are going to use this region to add our own stylesheet to our application. We'll do that another time though, so for now it'll remain empty.

To tidy it up, you'll have to edit the logo and page title regions. Set the width of the Logo region to 30%, and the alignment to left. In the page title region set the width to 70%. You may have to adjust the Space Around Items setting to get the text to align nicely with the logo: my logo was 70 pixels high and I found that increasing the Space Around from 12 to 20 pixels worked out about right.

The completed banner should look something like this:

Screenshot of the banner with all the changes made

If you click on the navigator link on the top right you should be able to work your way back up to the list of Page Groups. Click on the View Root Page link beside our Demo Page Group to look at our handywork (click back to return):

Screenshot of the Demo page group with the new banner

Next, adding a list of employees by creating a simple dynamic page