Pruned the Wobject help, lots of side effects

This commit is contained in:
Colin Kuskie 2007-07-20 04:04:47 +00:00
parent 65d1c960d4
commit fb6064e88a
38 changed files with 13 additions and 416 deletions

View file

@ -180,6 +180,10 @@ sub www_edit {
$self->getAdminConsole->setHelp("snippet add/edit","Asset_Snippet");
my $i18n = WebGUI::International->new($self->session, 'Asset_Snippet');
return $self->getAdminConsole->render($self->getEditForm->print,$i18n->get('snippet add/edit title'));
my $i18n = WebGUI::International->new($self->session,'Asset_Wobject');
my $addEdit = ($self->session->form->process("func") eq 'add') ? $i18n->get('add') : $i18n->get('edit');
return $self->getAdminConsole->render($self->getEditForm->print,$addEdit.' '.$self->getName);
}
#-------------------------------------------------------------------

View file

@ -431,10 +431,6 @@ our $HELP = {
tag => 'metadata edit property',
namespace => 'Asset'
},
{
tag => 'wobject add/edit',
namespace => 'Asset_Wobject',
},
],
},
@ -468,10 +464,6 @@ our $HELP = {
tag => 'metadata manage',
namespace => 'Asset'
},
{
tag => 'wobject add/edit',
namespace => 'Asset_Wobject',
},
],
},

View file

@ -9,10 +9,6 @@ our $HELP = {
title => 'help add/edit title',
body => 'help add/edit body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'dashboard add/edit title',
body => 'dashboard add/edit body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '61',
body => '71',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{
@ -85,10 +81,6 @@ our $HELP = {
tag => 'data form template',
namespace => 'Asset_DataForm'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
]
},

View file

@ -8,10 +8,6 @@ our $HELP = {
title => 'add/edit help title',
body => 'add/edit help body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{
@ -66,10 +62,6 @@ our $HELP = {
},
],
related => [
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
{
tag => 'asset fields',
namespace => 'Asset'

View file

@ -6,10 +6,6 @@ our $HELP = {
title => 'folder add/edit title',
body => 'folder add/edit body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit",
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '10',
body => '11',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{
@ -77,10 +73,6 @@ our $HELP = {
tag => 'asset fields',
namespace => 'Asset',
},
{
tag => 'wobject add/edit',
namespace => 'Asset_Wobject',
},
{
tag => 'http proxy template',
namespace => 'Asset_HttpProxy',

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '18',
body => '19',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{
@ -51,10 +47,6 @@ our $HELP = {
tag => 'in out board report template',
namespace => 'Asset_InOutBoard',
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject',
},
],
},

View file

@ -23,10 +23,6 @@ our $HELP = {
tag => 'asset fields',
namespace => 'Asset'
},
{
tag => 'wobject add/edit',
namespace => 'Asset_Wobject'
},
{
tag => 'layout template',
namespace => 'Asset_Layout'

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'add/edit help title',
body => 'add/edit help body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '61',
body => '71',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{
@ -28,10 +24,6 @@ our $HELP = {
tag => 'message board template',
namespace => 'Asset_MessageBoard',
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject',
},
],
},

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'multisearch add/edit title',
body => 'multisearch add/edit body',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '1098',
body => '1093',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '61',
body => '71',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{
@ -62,10 +58,6 @@ our $HELP = {
tag => 'poll template',
namespace => 'Asset_Poll',
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject',
}
]
},

View file

@ -3,7 +3,7 @@ package WebGUI::Help::Asset_Post;
our $HELP = {
'post add/edit template' => { ##Asset/Post/www_edit
title => 'add/edit post template title',
body => 'add/edit post template body',
body => '',
isa => [
{
tag => 'collaboration template labels',
@ -163,7 +163,7 @@ our $HELP = {
'post template variables' => { ##Asset/Post/getTemplateVars
title => 'post template variables title',
body => 'post template variables body',
body => '',
isa => [
{
tag => 'post asset variables',
@ -292,7 +292,7 @@ our $HELP = {
'post asset variables' => {
private => 1,
title => 'post asset variables title',
body => 'post asset variables body',
body => '',
isa => [
{
tag => 'asset template asset variables',

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '38',
body => '39',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit'
},
],
fields => [
{
@ -88,10 +84,6 @@ our $HELP = {
tag => 'product template',
namespace => 'Asset_Product'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
}
]
},

View file

@ -7,10 +7,6 @@ our $HELP = {
title => 'pm add/edit title',
body => 'pm add/edit body',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'edit sqlform',
body => 'sqlform description',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '61',
body => '71',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{ #templateId
@ -57,10 +53,6 @@ our $HELP = {
tag => 'sql report template',
namespace => 'Asset_SQLReport'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
]
},

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'add/edit title',
body => 'add/edit body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{
@ -32,10 +28,6 @@ our $HELP = {
tag => 'search template',
namespace => 'Asset_Search'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
]
},

View file

@ -35,10 +35,6 @@ our $HELP = {
fields => [
],
related => [
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
]
},

View file

@ -1,40 +0,0 @@
package WebGUI::Help::Asset_Snippet;
our $HELP = {
'snippet add/edit' => {
title => 'snippet add/edit title',
body => 'snippet add/edit body',
isa => [
{
tag => 'asset fields',
namespace => 'Asset'
},
],
fields => [
{
title => 'cache timeout',
namespace => 'Asset_File',
description => 'cache timeout help'
},
{
title => 'assetName',
description => 'snippet description',
namespace => 'Asset_Snippet',
},
{
title => 'process as template',
description => 'process as template description',
namespace => 'Asset_Snippet',
},
{
title => 'mimeType',
description => 'mimeType description',
namespace => 'Asset_Snippet',
},
],
},
};
1;

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'help_add_edit_stocklist_title',
body => 'help_add_edit_stocklist_body',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit',
},
],
fields => [
{
@ -50,10 +46,6 @@ our $HELP = {
tag => 'stock list display template',
namespace => 'Asset_StockData',
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject',
},
],
},

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '3',
body => '4',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit'
},
],
fields => [
{
@ -82,10 +78,6 @@ our $HELP = {
tag => 'asset fields',
namespace => 'Asset'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
{
tag => 'question add/edit',
namespace => 'Asset_Survey'

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '61',
body => '71',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit'
},
],
fields => [
{
@ -48,10 +44,6 @@ our $HELP = {
tag => 'syndicated content template',
namespace => 'Asset_SyndicatedContent'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
],
},

View file

@ -4,7 +4,7 @@ our $HELP = {
'template variables' => {
title => 'template variable title',
body => 'template variable body',
body => '',
fields => [
],
variables => [

View file

@ -3,7 +3,7 @@ package WebGUI::Help::Asset_Thread;
our $HELP = {
'thread template variables' => {
title => 'thread template title',
body => 'thread template body',
body => '',
isa => [
{
tag => 'template variables',
@ -169,7 +169,7 @@ our $HELP = {
'thread asset template variables' => {
private => 1,
title => 'thread asset template title',
body => 'thread asset template body',
body => '',
isa => [
{
tag => 'post asset variables',

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'timetracking add/edit title',
body => 'timetracking add/edit body',
isa => [
{
namespace => 'Asset_Wobject',
tag => 'wobject add/edit'
},
],
fields => [
{

View file

@ -5,10 +5,6 @@ our $HELP = {
title => '61',
body => '71',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{
@ -87,10 +83,6 @@ our $HELP = {
tag => 'ws client template',
namespace => 'Asset_WSClient'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
}
]
},

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'weather data add/edit title',
body => 'weather data add/edit body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{
@ -32,10 +28,6 @@ our $HELP = {
tag => 'weatherdata template',
namespace => 'Asset_WeatherData'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
],
},

View file

@ -5,10 +5,6 @@ our $HELP = {
title => 'add/edit title',
body => 'add/edit body',
isa => [
{
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
],
fields => [
{
@ -103,10 +99,6 @@ our $HELP = {
},
],
related => [
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
},
],
},

View file

@ -2,79 +2,9 @@ package WebGUI::Help::Asset_Wobject;
our $HELP = {
'wobjects using' => {
title => '671',
body => '626',
fields => [
],
related => [
{
tag => 'wobject add/edit',
namespace => 'Asset_Wobject'
},
{
tag => 'wobject delete',
namespace => 'Asset_Wobject'
}
]
},
'wobject add/edit' => {
title => '677',
body => '632',
isa => [
{
tag => 'asset fields',
namespace => 'Asset'
},
],
fields => [
{
title => '174',
description => '174 description',
namespace => 'Asset_Wobject',
uiLevel => 5,
},
{
title => '1073',
description => '1073 description',
namespace => 'Asset_Wobject',
},
{
title => '1079',
description => '1079 description',
namespace => 'Asset_Wobject',
},
{
title => '85',
description => '85 description',
namespace => 'Asset_Wobject',
},
],
related => [
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
}
]
},
'wobject delete' => {
title => '664',
body => '619',
fields => [
],
related => [
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
}
]
},
'wobject template' => {
title => '827',
body => '828',
body => '',
fields => [
],
variables => [
@ -102,7 +32,7 @@ our $HELP = {
'wobject template variables' => {
private => 1,
title => 'wobject template variables title',
body => 'wobject template variables body',
body => '',
isa => [
{
tag => 'asset template asset variables',

View file

@ -208,13 +208,6 @@ Defaults to mixed.|,
lastUpdated => 1149829706,
},
'add/edit post template body' => {
message => q|<p>In addition to the common Post Template variables, the Add/Edit Post Template has these variables:
</p>
|,
lastUpdated => 1149829733,
},
'post template variables title' => {
message => q|Post Template Variables|,
lastUpdated => 1111253044,
@ -507,25 +500,11 @@ editing an existing Post, and a thread containing the Post exists.|,
lastUpdated => 1150167057,
},
'post template variables body' => {
message => q|<p>The following variables are available in all Post templates and
templates in the Collaboration System.</p>
|,
lastUpdated => 1164424949,
},
'post asset variables title' => {
message => q|Post Asset Template Variables|,
lastUpdated => 1164425086,
},
'post asset variables body' => {
message => q|<p>The following variables are used in many Post and Collaboration System templates. They
pull their data directly from the Post Asset's properties.</p>
|,
lastUpdated => 1164425047,
},
'post received' => {
message => q|Your post has been received and is being processed so it can be added to the site. Please be patient.|,
context => q|Displayed after someone posts a new message.|,

View file

@ -29,22 +29,6 @@ our $I18N = {
},
'snippet add/edit title' => {
message => q|Snippet, Add/Edit|,
lastUpdated => 1104630516,
},
'snippet add/edit body' => {
message => q|<p>Snippets are bits of text that may be reused on your site. Things like java scripts, cascading style sheets, HTML segments, XML or company slogans can all be used as snippets. Best of all, if you need to change the text, you need change it in only one location to update the snippet wherever it is used.</p>
<p>Macros placed in the Snippet will always be executed.</p>
<p>Snippets are Assets so they have all the properties that Assets do.</p>
|,
context => 'Describing snippets',
lastUpdated => 1167190148,
},
'snippet description' => {
message => q|This is the snippet. Either type it in or copy and paste it into the form field.|,
lastUpdated => 1130880361,

View file

@ -135,27 +135,6 @@ Any scratch variables will be available in the template with this syntax:<br/>
lastUpdated => 1165343240,
},
'template variable body' => {
message => q|
<p>Each template has access two kinds of variables. The first kind is specific to the kind,
or namespace, of the template. Article templates have different variables from Poll templates.
Even inside of an Asset there can be several kinds of template, each with its own set of
template variables. The Collaboration System alone uses 5 templates to style user notification,
editing posts, displaying threads and other tasks.</p>
<p>The second kind of variables are available in every template, regardless of its type
or what namespace it lives in. These common variables are listed below.</p>
<p><i>NOTES:</i><br />
<ul>
<li>The syntax for these variables is shown in WebGUI's default template language, HTML::Template. If the Template Type
has been set to some other language you will need to consult that template's documentation for the appropriate syntax for its variables.</li>
<li>The session variables are deprecated.</li>
</ul>
</p>.
|,
lastUpdated => 1169243386,
},
'site name' => {
message => q|Site Name|,
lastUpdated => 1146244474,

View file

@ -230,13 +230,6 @@ also contains a set of its own Post Template variables.|,
lastUpdated => 1149633755,
},
'thread template body' => {
message => q|<p>The variables below are available in the Thread template. In addition, all variables from the Post Template can be used. Labels for URLs for actions like <b>unlock.url</b>, <b>stick.url</b>, etc. are provided by the Collaboration Labels. The Pagination Template variables are also available to display multiple pages of posts and threads.
</p>
|,
lastUpdated => 1149633782,
},
'assetName' => {
message => q|Thread|,
context => q|label for Asset Manager, getName|,
@ -283,12 +276,6 @@ also contains a set of its own Post Template variables.|,
lastUpdated => 1166848379,
},
'thread asset template body' => {
message => q|<p>The variables below are available in the Thread template. Most of them are internal variable that are not overly useful.</p>
|,
lastUpdated => 1166848381,
},
};
1;

View file

@ -37,35 +37,13 @@ our $I18N = {
lastUpdated => 1148750705,
},
'828' => {
message => q|<p>Most wobjects have templates that allow you to change the layout of the wobject's user interface. Those wobjects that do have templates all have a common set of template variables that you can use for layout, as well as their own custom variables. The following is a list of the common template variables shared among all wobjects.</p>
|,
lastUpdated => 1148750840,
},
'1079' => {
lastUpdated => 1073152790,
message => q|Printable Style|
},
'827' => {
message => q|Wobject Template Variables|,
lastUpdated => 1052046436,
message => q|Wobject Template|
},
'632' => {
lastUpdated => 1119410914,
message => q|<p>You can add wobjects by selecting from the <i>^International("1","WebGUI");</i> pulldown menu. You can edit them by clicking on the "Edit" button that appears directly above an instance of a particular wobject while in Admin mode.</p>
<p>Wobjects are Assets, so they have all of the properties that Assets do. Additionally, most Wobjects share some basic properties. Those properties are:</p>|
},
'626' => {
lastUpdated => 1146852133,
message => q|<p>Wobjects are the true power of WebGUI. Wobjects are tiny pluggable applications built to run under WebGUI. Articles, message boards and polls are examples of wobjects.
Wobjects can be standalone pages all by themselves, or can be individual parts of pages.
</p>
<p>To add a wobject to a page, first go to that page, then select <b>Add Content...</b> from the upper left corner of your screen. Each wobject has it's own help so be sure to read the help if you're not sure how to use it.
</p>
|
},
'174 description' => {
@ -94,10 +72,6 @@ is displayed as part of a Layout Asset, the Layout Asset's <b>Style Template</b>
lastUpdated => 1031514049,
message => q|Please Confirm|
},
'677' => {
lastUpdated => 1047858650,
message => q|Wobject, Add/Edit|
},
'174' => {
lastUpdated => 1031514049,
message => q|Display the title?|
@ -114,31 +88,11 @@ is displayed as part of a Layout Asset, the Layout Asset's <b>Style Template</b>
lastUpdated => 1031514049,
message => q|Description|
},
'664' => {
lastUpdated => 1031514049,
message => q|Wobject, Delete|
},
'619' => {
lastUpdated => 1146852148,
message => q|<p>This function permanently deletes the selected wobject from a page. If you are unsure whether you wish to delete this content you may be better served to cut the content to the clipboard until you are certain you wish to delete it.
</p>
<p>As with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you'll be returned to the prior screen.
</p>
|
},
'45' => {
lastUpdated => 1031514049,
message => q|No, I made a mistake.|
},
'671' => {
lastUpdated => 1047858549,
message => q|Wobjects, Using|
},
'assetName' => {
message => q|Wobject|,
lastUpdated => 1128830333,
@ -160,14 +114,6 @@ is displayed as part of a Layout Asset, the Layout Asset's <b>Style Template</b>
lastUpdated => 1167374430,
},
'wobject template variables body' => {
message => q|<p>These template variables are common to almost every Wobject and include all the template variables common to Assets. Many of them are internal asset properties that govern behavior and may not be very useful for templates. One example of this would be the ID of templates used to display the Asset. Depending on whether or not the user filled out the fields, they may or may not be blank.</p>
|,
lastUpdated => 1167374417,
},
};
1;