4.14 :: Settings

Description


Settings can be added to your WAPL that affect runtime decisions. This section will expand as more settings are added.

Site Name


Specify a site name for your WAPL application.

Example:

<settings>
<siteName>My Test Site</siteName>
</settings>

Page Header


Set the default page title for site.

Example:

<settings>
<defaultPageHeader>My Test Site Page Title</defaultPageHeader>
</settings>

Bango Page Tracking


To include a Bango analytics page tracking snippet on your page, use the following code (with your own page tracking id). The page title will automatically be created and used in the snippet.
..snip..
  1.  
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.  <settings>
  4.  <bangoPageTrackingId>123456789</bangoPageTrackingId>
  5.  </settings>
..snip..

Layout Mode


Set the type of layout mode you want - either DIV or TABLE

Example:
<settings>
<layoutMode>div</layoutMode>
</settings>

inlineStyles


Specify whether styles are loaded inline in the element, or linked to external style sheets. 1 is on, 0 is off (default)

Example:
<settings>
<inlineStyles>div</inlineStyles>
</settings>

iPhone Options


Use the elements below to set iPhone specific parameters for your site that will only be applied to iPhones.

iPhone Text Size Adjust


Set the text size adjust value for your site. Values are entered as integers and represent a percentage. i.e. 50 = 50%

Example:

<settings>
<iphoneTextSizeAdjust>50</iphoneTextSizeAdjust>
</settings>

iPhone User Scaleable


Determine whether a user can scale your site on their iPhone. This element be a boolean value. True: enables scaling. False: disables the user scaling controls.

Example:

<settings>
<iphoneUserScaleable>1</iphoneUserScaleable>
</settings>

iPhone Initial Scale


Set the initial scale value for your site. Accepted values are between 1 - 10.

Example:

<settings>
<iphoneInitalScale>1</iphoneInitalScale>
</settings>

iPhone Minimum Scale


Set the minimum scale value for your site. Accepted values are between 1 - 10.

Example:

<settings>
<iphoneMinScale>1</iphoneMinScale>
</settings>

iPhone Maximum Scale


Set the maximum scale value for your site. Accepted values are between 1 - 10.

Example:

<settings>
<iphoneMaxScale>10</iphoneMaxScale>
</settings>

iPhone Extra Width


Set the extra width value for your site. This element accepts a boolean value.

Example:

<settings>
<iphoneMagicWidth>1</iphoneMagicWidth>
</settings>

Contents