Place Wobject help into its own file

This commit is contained in:
Colin Kuskie 2005-03-05 01:15:28 +00:00
parent ac877443ed
commit 65f93c9c81
21 changed files with 52 additions and 274 deletions

View file

@ -158,10 +158,10 @@ A comparison expression to be used when checking whether the action should be al
sub confirm {
return WebGUI::Privilege::vitalComponent() if ($_[4]);
my $noURL = $_[3] || $_[0]->getUrl;
my $output = '<h1>'.WebGUI::International::get(42).'</h1>';
my $output = '<h1>'.WebGUI::International::get(42,'Wobject').'</h1>';
$output .= $_[1].'<p>';
$output .= '<div align="center"><a href="'.$_[2].'">'.WebGUI::International::get(44).'</a>';
$output .= ' &nbsp; <a href="'.$noURL.'">'.WebGUI::International::get(45).'</a></div>';
$output .= '<div align="center"><a href="'.$_[2].'">'.WebGUI::International::get(44,'Wobject').'</a>';
$output .= ' &nbsp; <a href="'.$noURL.'">'.WebGUI::International::get(45,'Wobject').'</a></div>';
return $output;
}
@ -213,38 +213,38 @@ sub getEditForm {
my $tabform = $self->SUPER::getEditForm();
$tabform->getTab("display")->yesNo(
-name=>"displayTitle",
-label=>WebGUI::International::get(174),
-label=>WebGUI::International::get(174,'Wobject'),
-value=>$self->getValue("displayTitle"),
-uiLevel=>5
);
$tabform->getTab("display")->template(
-name=>"styleTemplateId",
-label=>WebGUI::International::get(1073),
-label=>WebGUI::International::get(1073,'Wobject'),
-value=>$self->getValue("styleTemplateId"),
-namespace=>'style',
-afterEdit=>'op=editPage&amp;npp='.$session{form}{npp}
);
$tabform->getTab("display")->template(
-name=>"printableStyleTemplateId",
-label=>WebGUI::International::get(1079),
-label=>WebGUI::International::get(1079,'Wobject'),
-value=>$self->getValue("printableStyleTemplateId"),
-namespace=>'style',
-afterEdit=>'op=editPage&amp;npp='.$session{form}{npp}
);
$tabform->getTab("properties")->HTMLArea(
-name=>"description",
-label=>WebGUI::International::get(85),
-label=>WebGUI::International::get(85,'Wobject'),
-value=>$self->getValue("description")
);
$tabform->getTab("display")->interval(
-name=>"cacheTimeout",
-label=>WebGUI::International::get(895),
-label=>WebGUI::International::get(895,'Wobject'),
-value=>$self->getValue("cacheTimeout"),
-uiLevel=>8
);
$tabform->getTab("display")->interval(
-name=>"cacheTimeoutVisitor",
-label=>WebGUI::International::get(896),
-label=>WebGUI::International::get(896,'Wobject'),
-value=>$self->getValue("cacheTimeoutVisitor"),
-uiLevel=>8
);

View file

@ -11,7 +11,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -29,7 +29,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -34,7 +34,7 @@ our $HELP = {
},
{
tag => 'wobject add/edit',
namespace => 'WebGUI',
namespace => 'Wobject',
},
],
},
@ -52,7 +52,7 @@ our $HELP = {
},
{
tag => 'wobject add/edit',
namespace => 'WebGUI',
namespace => 'Wobject',
},
],
},

View file

@ -15,7 +15,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
},
]
},
@ -33,7 +33,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
},
]
},
@ -51,7 +51,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -7,7 +7,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -17,7 +17,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -27,7 +27,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -7,7 +7,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -17,7 +17,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -27,7 +27,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -37,7 +37,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -47,7 +47,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -19,7 +19,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -51,7 +51,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -15,7 +15,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -47,7 +47,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -61,7 +61,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -12,7 +12,7 @@ our $HELP = {
},
{
tag => 'wobject add/edit',
namespace => 'WebGUI'
namespace => 'Wobject'
},
{
tag => 'folder template',

View file

@ -10,8 +10,8 @@ our $HELP = {
namespace => 'Asset'
},
{
tag => 'wobjects add/edit',
namespace => 'WebGUI'
tag => 'wobject add/edit',
namespace => 'Wobject'
},
{
tag => 'http proxy template',

View file

@ -7,7 +7,7 @@ our $HELP = {
related => [
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
},
{
tag => 'search template',
@ -21,7 +21,7 @@ our $HELP = {
related => [
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
},
{
tag => 'search add/edit',

View file

@ -11,7 +11,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -21,7 +21,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
}

View file

@ -11,7 +11,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -25,7 +25,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -31,7 +31,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -103,7 +103,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -11,7 +11,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -29,7 +29,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -7,7 +7,7 @@ our $HELP = {
related => [
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
},
{
tag => 'metadata manage',
@ -23,7 +23,7 @@ our $HELP = {
related => [
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
},
{
tag => 'template language',

View file

@ -7,7 +7,7 @@ our $HELP = {
related => [
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
},
{
tag => 'survey template',
@ -45,7 +45,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -11,7 +11,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -25,7 +25,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -11,7 +11,7 @@ our $HELP = {
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},
@ -25,7 +25,7 @@ our $HELP = {
},
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -86,86 +86,7 @@ our $HELP = {
}
]
},
'wobjects using' => {
title => '671',
body => '626',
related => [
{
tag => 'macros using',
namespace => 'WebGUI'
},
{
tag => 'style sheets using',
namespace => 'WebGUI'
},
{
tag => 'wobject add/edit',
namespace => 'WebGUI'
},
{
tag => 'wobject delete',
namespace => 'WebGUI'
}
]
},
'wobject add/edit' => {
title => '677',
body => '632',
related => [
{
tag => 'asset fields',
namespace => 'Asset'
},
{
tag => 'article add/edit',
namespace => 'Article'
},
{
tag => 'events calendar add/edit',
namespace => 'EventsCalendar'
},
{
tag => 'http proxy add/edit',
namespace => 'HttpProxy'
},
{
tag => 'data form add/edit',
namespace => 'DataForm'
},
{
tag => 'message board add/edit',
namespace => 'MessageBoard'
},
{
tag => 'metadata manage',
namespace => 'Asset'
},
{
tag => 'poll add/edit',
namespace => 'Poll'
},
{
tag => 'product add/edit',
namespace => 'Product'
},
{
tag => 'sql report add/edit',
namespace => 'SQLReport'
},
{
tag => 'survey add/edit',
namespace => 'Survey'
},
{
tag => 'syndicated content add/edit',
namespace => 'SyndicatedContent'
},
{
tag => 'wobjects using',
namespace => 'WebGUI'
}
]
},
'style sheets using' => {
title => '668',
body => '623',
@ -200,16 +121,6 @@ our $HELP = {
}
]
},
'wobject delete' => {
title => '664',
body => '619',
related => [
{
tag => 'wobjects using',
namespace => 'WebGUI'
}
]
},
'settings' => {
title => 'settings',
body => 'settings help',
@ -393,57 +304,6 @@ our $HELP = {
]
},
'wobject template' => {
title => '827',
body => '828',
related => [
{
tag => 'article template',
namespace => 'Article'
},
{
tag => 'data form template',
namespace => 'DataForm'
},
{
tag => 'events calendar template',
namespace => 'EventsCalendar'
},
{
tag => 'message board template',
namespace => 'MessageBoard'
},
{
tag => 'pagination template variables',
namespace => 'WebGUI'
},
{
tag => 'poll template',
namespace => 'Poll'
},
{
tag => 'product template',
namespace => 'Product'
},
{
tag => 'survey template',
namespace => 'Survey'
},
{
tag => 'syndicated content template',
namespace => 'SyndicatedContent'
},
{
tag => 'template language',
namespace => 'Template'
},
{
tag => 'templates manage',
namespace => 'Template'
},
]
},
'programmer macros' => {
title => '839',
body => '840',
@ -614,7 +474,7 @@ our $HELP = {
related => [
{
tag => 'wobject template',
namespace => 'WebGUI'
namespace => 'Wobject'
}
]
},

View file

@ -1549,11 +1549,6 @@ That particular example will help you get good ranking on search engines.
lastUpdated => 1031514049
},
'677' => {
message => q|Wobject, Add/Edit|,
lastUpdated => 1047858650
},
'907' => {
message => q|Are you certain you wish to delete this theme?|,
lastUpdated => 1050230443
@ -1589,11 +1584,6 @@ That particular example will help you get good ranking on search engines.
lastUpdated => 1031514049
},
'664' => {
message => q|Wobject, Delete|,
lastUpdated => 1031514049
},
'756' => {
message => q|Back to group list.|,
lastUpdated => 1036867726
@ -1849,11 +1839,6 @@ The password you use to connect to the DSN.
lastUpdated => 1038023800
},
'671' => {
message => q|Wobjects, Using|,
lastUpdated => 1047858549
},
'142' => {
message => q|Session Timeout|,
lastUpdated => 1031514049
@ -1864,32 +1849,6 @@ The password you use to connect to the DSN.
lastUpdated => 1031514049
},
'632' => {
message => q|<p>You can add wobjects by selecting from the <I>Add Content</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 one kind of Asset, so they have all of the properties that Assets do. Additionally, almost all Wobjects share some properties. Those properties are:</p>
<P><B>Display title?</B><BR>
Do you wish to display the Wobject's title? On some sites, displaying the title is not necessary.
<P><b>Style Template</b><br>
Select a style template from the list to enclose your Wobject if it is viewed directly. If the Wobject
is displayed as part of a Layout Asset, the Layout Asset's <b>Style Template</b> is used instead.
<p><b>Printable Style</b><br>
This sets the printable style for this page to be something other than the WebGUI Default Printable Style. It behaves similarly to the <b>Style Template</b> with respect to when it is used.
<P><B>Description</B><BR>A content area in which you can place as much content as you wish. For instance, even before a FAQ there is usually a paragraph describing what is contained in the FAQ.
<P><B>Cache Timeout</B><BR>The amount of time this page should remain cached for registered users.
<P><B>Cache Timeout (Visitors)</B><BR>The amount of time this page should remain cached for visitors.
<P><B>NOTE:</B> Page caching is only available if your administrator has installed the Cache::FileCache Perl module. Using page caching can improve site performance by as much as 1000%.&nbsp;
|,
lastUpdated => 1106767207,
},
'991' => {
message => q|Database Link ID|,
lastUpdated => 1056151382
@ -2177,35 +2136,6 @@ One package that many people create is a Page/Article package. It is often the c
lastUpdated => 1031514049
},
'626' => {
message => q|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.
<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>
<b>Style Sheets:</b><br>
All wobjects have a style-sheet class and id attached to them.
The style-sheet class is the word "wobject" plus the type of wobject it is. So for a poll the class would be "wobjectPoll". The class pertains to all wobjects of that type in the system.
<p>
The style-sheet id is the word "wobjectId" plus the Wobject Id for that wobject instance. So if you had an Article with a Wobject Id of 94, then the id would be "wobjectId94".
<p>
<h3>URLs</h3>
<b>Direct Linking:</b><br>
You can create a URL to link directly to a wobject
on the page be appending the Wobject Id to the URL for the page.
<p>
For example, if the Article above was on a page http://www.mysite.com/thisPage, the link below will jump directly to the wobject on that page:<br>
http://www.mysite.com/thisPage#94
<p>
|,
lastUpdated => 1101775387,
},
'543' => {
message => q|Add a new image group.|,
lastUpdated => 1031514049
@ -2822,18 +2752,6 @@ Large sites using external group data will be making many calls to the external
lastUpdated => 1038889481
},
'619' => {
message => q|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>
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>
|,
lastUpdated => 1031514049
},
'1017' => {
message => q|Last Reply|,
lastUpdated => 1031514049