Difference between revisions of "Page Footers"

From Lianjapedia
Jump to: navigation, search
(Gadget)
(Notes on Client Support)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
''Under construction''
 
 
 
==See Also==
 
==See Also==
 
[[Page Attributes]], [[Section Footers]], [[Section Menus]]
 
[[Page Attributes]], [[Section Footers]], [[Section Menus]]
  
 
==Overview==
 
==Overview==
Pages can have a '''Footer''' displayed at the bottom of the Page.  The Footer can be made '''Visible''' or hidden.  It can display a '''Footer image''' or a '''Gadget'''.
+
Pages can have a '''Footer''' displayed at the bottom of the Page.  The Footer can be made '''Visible''' or hidden.  It can display a '''Footer image''' or be rendered using custom code.
 
   
 
   
 
Double-click on the Page header or click the cog icon to access the Page Attributes.  Scroll down to the Footer sub-section.
 
Double-click on the Page header or click the cog icon to access the Page Attributes.  Scroll down to the Footer sub-section.
Line 24: Line 22:
  
 
The Footer must be visible to display a Footer Image or Footer Gadget.
 
The Footer must be visible to display a Footer Image or Footer Gadget.
 +
<br clear=all>
 +
 +
[[#Notes on Client Support|Notes on Client Support]]
 +
 +
==Custom footer display delegate==
 +
[[{{ns:file}}:custom_page_footer.png|450px|thumb|left|link={{filepath:custom_page_footer.png}}|Custom Footer Display Delegate]]
 +
 +
 +
 +
 +
 +
The '''Custom footer display delegate''' attribute specifies the name of a procedure/function that will render the page footer when [[#Visible|Visible]] is true.
 
<br clear=all>
 
<br clear=all>
  
Line 84: Line 94:
 
==Gradient end color==
 
==Gradient end color==
 
* See [[Gradients]]
 
* See [[Gradients]]
 
[[#Notes on Client Support|Notes on Client Support]]
 
 
==Gadget==
 
[[{{ns:file}}:pfooter_gadget1.png|450px|thumb|left|link={{filepath:pfooter_gadget1.png}}|Gadget: rsp file]]
 
 
 
 
The '''Gadget''' attribute is used to specify the filename of the footer custom gadget script.
 
 
The script can be: Lianja/VFP (.prg), JavaScript (.js), PHP (.php), Python (.py), [[Visual FoxPro Server Pages|Lianja/VFP Server Page (.rsp)]] or [[JavaScript Server Pages|JavaScript Server Page (.jssp)]]
 
 
If no file extension is specified, '.prg' is assumed.
 
 
 
 
Here the '''Gadget''' attribute is set to [[pfooter.rsp]].
 
 
Note: this is a modified version of the 'rsidebar1.rsp' code used in the Page [[Right Sidebar]].
 
 
rsidebar1.rsp is included in the 'Lianja Web UI Demo' - example_webapp2 - demo App.
 
<br clear=all>
 
  
 
[[#Notes on Client Support|Notes on Client Support]]
 
[[#Notes on Client Support|Notes on Client Support]]
Line 123: Line 111:
 
<br clear=all>
 
<br clear=all>
 
[[#Notes on Client Support|Notes on Client Support]]
 
[[#Notes on Client Support|Notes on Client Support]]
 
  
 
==Notes on Client Support==
 
==Notes on Client Support==
Line 130: Line 117:
 
!width="80%"|Notes
 
!width="80%"|Notes
 
|-
 
|-
|valign="top"|Visible||Page Footers are supported on the desktop client only.
+
|valign="top"|Visible||-
 
|-
 
|-
|valign="top"|Height||Page Footers are supported on the desktop client only.
+
|valign="top"|Custom footer display delegate||The delegate must be written in JavaScript on the Web/Mobile client.
 
|-
 
|-
|valign="top"|Background color||Page Footers are supported on the desktop client only.
+
|valign="top"|Height||-
 
|-
 
|-
|valign="top"|Foreground color||Page Footers are supported on the desktop client only.
+
|valign="top"|Background color||Background color is supported on the desktop client only.
 
|-
 
|-
|valign="top"|Footer image||Page Footers are supported on the desktop client only.
+
|valign="top"|Foreground color||Foreground color is supported on the desktop client only.
 
|-
 
|-
|valign="top"|Gradient colors||Page Footers are supported on the desktop client only.
+
|valign="top"|Footer image||Footer image is supported on the desktop client only prior to v9.0.  From v9.0 it is supported on all clients.
 
|-
 
|-
|valign="top"|Gradient type||Page Footers are supported on the desktop client only.
+
|valign="top"|Gradient colors||Gradient colors are supported on the desktop client only.
 
|-
 
|-
|valign="top"|Gradient start color||Page Footers are supported on the desktop client only.
+
|valign="top"|Gradient start color||Gradient start color is supported on the desktop client only.
 
|-
 
|-
|valign="top"|Gradient end color||Page Footers are supported on the desktop client only.
+
|valign="top"|Gradient end color||Gradient end color is supported on the desktop client only.
 
|-
 
|-
|valign="top"|Gadget||Page Footers are supported on the desktop client only.
+
|valign="top"|Gadget||Gadgets are supported on the desktop client only.
 
|-
 
|-
|valign="top"|Refresh interval||Page Footers are supported on the desktop client only.
+
|valign="top"|Refresh interval||Refresh interval is supported on the desktop client only.
 
|-
 
|-
 
|}
 
|}
Line 156: Line 143:
 
[[Category:Attribute Categories]]
 
[[Category:Attribute Categories]]
 
[[Category:Pages]]
 
[[Category:Pages]]
 +
[[Category:PageAnatomy]]

Latest revision as of 10:51, 3 April 2023

See Also

Page Attributes, Section Footers, Section Menus

Overview

Pages can have a Footer displayed at the bottom of the Page. The Footer can be made Visible or hidden. It can display a Footer image or be rendered using custom code.

Double-click on the Page header or click the cog icon to access the Page Attributes. Scroll down to the Footer sub-section.

Visible

Footer: default Visible is False


By default, the Page Footer is not visible.

Footer: set Visible to True


To make the Footer visible, check the Visible attribute to True.

The Footer must be visible to display a Footer Image or Footer Gadget.

Notes on Client Support

Custom footer display delegate

Custom Footer Display Delegate



The Custom footer display delegate attribute specifies the name of a procedure/function that will render the page footer when Visible is true.

Notes on Client Support

Height

Footer Height


The Height attribute is used to specify the footer height.

Notes on Client Support

Background color

Footer Background Color


The Background color attribute is used to specify the footer background color.

Click the [...] button to access the 'Select Color' dialog.

Notes on Client Support

Foreground color

The Foreground color attribute is used to specify the footer foreground color.

As above, click the [...] button to access the 'Select Color' dialog.

Notes on Client Support

Footer image

Footer image


The Footer image attribute is used to specify the filename of an image to be displayed in the footer.

Notes on Client Support

Gradient colors

Notes on Client Support

Gradient type

Notes on Client Support

Gradient start color

Notes on Client Support

Gradient end color

Notes on Client Support

Refresh interval

Refresh interval


The Refresh interval attribute is used to specify the interval in seconds that the footer content will be refreshed.

Here, the 'footer_gadget.js' script generates a JavaScript gadget to display a label with the current time.

The Refresh interval attribute has been set to 5, so the time display is updated every five seconds.

Note: the refresh timer does not operate in Development view, so switch to Desktop App View to see the effects of the Refresh interval attribute.
Notes on Client Support

Notes on Client Support

Attribute Notes
Visible -
Custom footer display delegate The delegate must be written in JavaScript on the Web/Mobile client.
Height -
Background color Background color is supported on the desktop client only.
Foreground color Foreground color is supported on the desktop client only.
Footer image Footer image is supported on the desktop client only prior to v9.0. From v9.0 it is supported on all clients.
Gradient colors Gradient colors are supported on the desktop client only.
Gradient start color Gradient start color is supported on the desktop client only.
Gradient end color Gradient end color is supported on the desktop client only.
Gadget Gadgets are supported on the desktop client only.
Refresh interval Refresh interval is supported on the desktop client only.