SN_WIDGETS

NAME

sn_widgets - Use to implement widgets in Extenso.

SYNOPSIS

sn_widgets(uid:integer,table:string,lg:string,position:string[, add:boolean])

DESCRIPTION

This function is use to implement widgets in Extenso.

Widgets definition are in the table sn_widgets.

Widgets instantiation are in the table sn_widgets_list.

Widgets positions are in the table sn_widgets_position. If new positions are added, publish of fullpage must be done. You can do it in sn_widgets_position also.

If the widget has the checkbox publish set, the widget will be included dynamically in the page. Otherwise, it will be read in the page.

PARAMETERS

table
The widget is associated with a table. By default : pages
uid
The page within the table. By default page.rows.uid.
lg
The current language. By default lg.rows.lg.
position
Provide the position name of the widgets
add
If this parameter is true, add a + button to add a new widget
zindex
Provide a z-index to the enclosing widget. If 2 widgets are following each others the z-index of the first one must be higher than the z-index of the second one

EXAMPLES

%include "/extenso/functions/sn_widget.snc";

⟨⟨ sn_widgets(table:"pages",uid:1,lg:lg.rows.lg,position:"right"); ⟩⟩

SEE ALSO

AUTHOR

Written by Pierre Laplante

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com