Asset/Wobject/Layout.pm

This commit is contained in:
Colin Kuskie 2005-03-05 02:12:58 +00:00
parent 65f93c9c81
commit a3a335486a
2 changed files with 130 additions and 0 deletions

41
lib/WebGUI/Help/Layout.pm Normal file
View file

@ -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;

View file

@ -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|
<p>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.
<p>Layout Assets are Wobjects and Assets, and share the same properties of both. Layout
Assets also have these unique properties:</p>
<b>Template</b><br/>
Choose a template from the list to display the contents of the Layout Asset and
its children.
<p/>
<b>What Next?</b><br/>
After creating a new Layout Asset you may either go to that new page or go back
to the page where you created this Asset.
<p/>
|,
context => 'Describing Layout Add/Edit form specific fields',
lastUpdated => 1109989134,
},
'layout template title' => {
message => q|Layout Template|,
lastUpdated => 1109987374,
},
'layout template body' => {
message => q|<p>The following variables are available in Layout Templates:</p>
<P><b>showAdmin</b><br/>
A conditional showing if the current user has turned on Admin Mode and can edit this Asset.
<P><b>dragger.icon</b><br/>
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.
<P><b>dragger.init</b><br/>
HTML and Javascript required to make the click and drag work. If showAdmin is false, this variable is empty.
<P><b>position1_loop, position2_loop, ... positionN_loop</b><br/>
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.
<blockquote>
<P><b>id</b><br/>
The Asset ID of the Asset.
<P><b>content</b><br/>
The rendered content of the Asset.
</blockquote>
<P><b>attachment.size</b><br/>
The size of the file.
<P><b>attachment.type</b><br/>
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;