Sample portal page
The steps outlined in this example lead you through uploading an image, adding a banner to your web pages, including an image as the background for the banner and resizing the page.
Upload an image
First you must upload the image you wish to use as the background for your banner. Both the width of the banner and the width of the base page can be adjusted using the style editor. For this example, we will assume that the width needed is 780 pixels. The banner image uploaded would need to be 780 pixels.
- Select System > Portal Configuration.
- Click on the Content Editor tab.
- If you have created more than one portal, select the portal to be edited from the drop-down list at the bottom of the view.
- Click on the Images tab.
- To view an image, select it from the list on the left. The image displays in the panel on the right.
- To upload an image, click the Upload Images button.
- Browse to the image you want to upload and click Open.
- Scroll through the list on the left to make sure your image was uploaded.
- Click Apply to save.
Create a banner with an image background
To create the Banner you will have to use the Custom Rules option at the bottom of the Style Sheet Editor to expand the banner from a height of 0 pixels to an appropriate size. In this example, we are setting the banner to 80 pixels by 780 pixels. We will also adjust the page width to 780 pixels.
To use Custom Rules you must have a working knowledge of CSS.
- Select System > Portal Configuration.
- Click on the Content Editor tab.
- In the tree on the left, select Global > Styles to display the style editor.
- Scroll to the Custom Rules Definitions section at the bottom of the window. Using the Custom Rules option you can add multiple rules and each rule can contain multiple properties.
- Click Add Rule.
- In the field containing Enter Selector, type .branding.
- In the field containing Enter Property, type height.
- In the field containing Enter Value, type the height of your image, such as 80px.
- Click Add Property to add the next property which is the width of the image.
- In the Property field, enter width.
- In the Value field enter the width of the image, such as 780px. Click Add Property to add the next property which is the background image.
- In the Property field enter background-image.
-
In the Value field enter url('../../img/imagename.jpg') where imagename.jpg is the name of the image you uploaded earlier. If you would like to test this with a sample image, use banner.jpg.
In order to display uploaded images, the path to the image directory must be included in the Value field as follows:
../../img/
- Click Add Rule.
- In the field containing Enter Selector type #custom-doc.
- In the Property field, enter width.
- In the Value field, enter the width of the page, such as 780px. Now the page and the banner will be the same width.
- Click Apply to save.