diff --git a/lib/WebGUI/Help/Layout.pm b/lib/WebGUI/Help/Layout.pm new file mode 100644 index 000000000..f53c60302 --- /dev/null +++ b/lib/WebGUI/Help/Layout.pm @@ -0,0 +1,41 @@ +package WebGUI::Help::Layout; + +our $HELP = { + + 'layout add/edit' => { + title => 'layout add/edit title', + body => 'layout add/edit body', + related => [ + { + tag => 'asset fields', + namespace => 'Asset' + }, + { + tag => 'wobject add/edit', + namespace => 'Wobject' + }, + { + tag => 'layout template', + namespace => 'Layout' + }, + ] + }, + + 'layout template' => { + title => 'layout template title', + body => 'layout template body', + related => [ + { + tag => 'layout add/edit', + namespace => 'Layout' + }, + { + tag => 'template language', + namespace => 'Template' + }, + ] + }, + +}; + +1; diff --git a/lib/WebGUI/i18n/English/Layout.pm b/lib/WebGUI/i18n/English/Layout.pm new file mode 100644 index 000000000..771c0a767 --- /dev/null +++ b/lib/WebGUI/i18n/English/Layout.pm @@ -0,0 +1,89 @@ +package WebGUI::i18n::English::Layout; + +our $I18N = { + 'layout add/edit title' => { + message => q|Layout, Add/Edit|, + lastUpdated => 1106683494, + }, + + 'layout add/edit body' => { + message => q| +
Layout Assets are used to display multiple Assets on the same time, much like +Pages in version 5 of WebGUI. The Layout Asset consists of a template with +multiple content areas, and Assets that are children of the Layout can be assigned +to be displayed in those areas. + +
Layout Assets are Wobjects and Assets, and share the same properties of both. Layout +Assets also have these unique properties:
+ +TemplateThe following variables are available in Layout Templates:
+ +showAdmin
+A conditional showing if the current user has turned on Admin Mode and can edit this Asset.
+
+
dragger.icon
+An icon that can be used to change the Asset's position with the mouse via a click and
+drag interface. If showAdmin is false, this variable is empty.
+
+
dragger.init
+HTML and Javascript required to make the click and drag work. If showAdmin is false, this variable is empty.
+
+
position1_loop, position2_loop, ... positionN_loop
+Each position in the template has a loop which has the set of Assets
+which are to be displayed inside of it. Assets that have not been
+specifically placed are put inside of position 1.
+
+
+ ++ +id
+The Asset ID of the Asset. + +content
+The rendered content of the Asset. + +
attachment.size
+The size of the file.
+
+
attachment.type
+The type of the file (PDF, etc.)
+
+ |,
+ context => 'Describing the file template variables',
+ lastUpdated => 1109987366,
+ },
+
+ '823' => {
+ message => q|Go to the new page.|,
+ lastUpdated => 1038706332
+ },
+
+ '847' => {
+ message => q|Go back to the current page.|,
+ lastUpdated => 1039587250
+ },
+
+};
+
+1;