You are here: 1 – Setup > 1.4 Viewpoint customization > Configuring Homepage gadgets > Customizing Homepage gadget layout

Customizing Homepage gadget layout

You can manually configure the placement and order of the gadgets on the Viewpoint Homepage. The Homepage GUI is composed of three columns of gadgets. (Gadgets are simple HTML and JavaScript applications that can be embedded in Web pages and other applications. For more information, see Adding a custom Homepage gadget). Each gadget automatically sizes horizontally, according to the width of the browser. However, you can manually configure the height of the gadget.

Scrolling is disabled in gadget iframes. Make sure that your gadgets will fit within the size specifications you set.

Gadget positioning is set in the homepage.xml file.

To arrange gadgets on the homepage

  1. Open the homepage.xml file in the $VIEWPOINT_HOME directory, and locate the <gadgets> element.
  2. For a particular gadget, modify the <positioning> child element the following ways:
    1. Set the column attribute to the number of the column in which the gadget will be:
    2. ValuePosition
      "1" Left column
      "2" Center column
      "3" Right column
    3. Specify the priority attribute to set the vertical order of the gadget in the column. Smaller numbers have higher priority. For example, to place the gadget in the top of the column, set the priority to "10". To set a gadget second in the column, set the priority to "20", and so on.
    4. You can "stack" gadgets as high as you want inside a column with the priority attribute.

    5. Set the gadget iframe height with the height attribute. The value is the height in pixels (for example "60").
  3. For example:

    <gadget>
      ...
          <positioning column="2" priority="20" height="60" />
      ...
    </gadget>

Related topics 

© 2015 Adaptive Computing