From 3fc303c9e08e7099d2ad1af8c8e429991b7bd50b Mon Sep 17 00:00:00 2001
From: Colin Kuskie
Date: Thu, 14 Jul 2005 17:27:25 +0000
Subject: [PATCH] move Export Page help from WebGUI to Asset. add hover help
---
lib/WebGUI/Asset.pm | 9 ++++-
lib/WebGUI/Help/Asset.pm | 34 ++++++++++++++++
lib/WebGUI/Help/WebGUI.pm | 8 ----
lib/WebGUI/i18n/English/Asset.pm | 43 ++++++++++++++++++++
lib/WebGUI/i18n/English/WebGUI.pm | 65 -------------------------------
5 files changed, 84 insertions(+), 75 deletions(-)
diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm
index b141dd6e1..7d69cebff 100644
--- a/lib/WebGUI/Asset.pm
+++ b/lib/WebGUI/Asset.pm
@@ -3219,32 +3219,37 @@ Displays the export page administrative interface
sub www_export {
my $self = shift;
return WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(13));
- $self->getAdminConsole->setHelp("page export");
+ $self->getAdminConsole->setHelp("page export", "Asset");
my $f = WebGUI::HTMLForm->new(-action=>$self->getUrl);
$f->hidden("func","exportStatus");
$f->integer(
-label=>WebGUI::International::get('Depth',"Asset"),
+ -hoverHelp=>WebGUI::International::get('Depth description',"Asset"),
-name=>"depth",
-value=>99,
);
$f->selectList(
-label=>WebGUI::International::get('Export as user',"Asset"),
+ -hoverHelp=>WebGUI::International::get('Export as user description',"Asset"),
-name=>"userId",
-options=>WebGUI::SQL->buildHashRef("select userId, username from users"),
-value=>[1],
);
$f->text(
-label=>WebGUI::International::get("directory index","Asset"),
+ -hoverHelp=>WebGUI::International::get("directory index description","Asset"),
-name=>"index",
-value=>"index.html"
);
$f->text(
-label=>WebGUI::International::get('Extras URL',"Asset"),
+ -hoverHelp=>WebGUI::International::get('Extras URL description',"Asset"),
-name=>"extrasURL",
-value=>$session{config}{extrasURL}
);
$f->text(
-label=>WebGUI::International::get('Uploads URL',"Asset"),
+ -hoverHelp=>WebGUI::International::get('Uploads URL description',"Asset"),
-name=>"uploadsURL",
-value=>$session{config}{uploadsURL}
);
@@ -3271,7 +3276,7 @@ sub www_exportStatus {
$iframeUrl = WebGUI::URL::append($iframeUrl, 'extrasURL='.$session{form}{extrasURL});
$iframeUrl = WebGUI::URL::append($iframeUrl, 'uploadsURL='.$session{form}{uploadsURL});
my $output = '';
- $self->getAdminConsole->render($output,WebGUI::International::get('Page Export Status'),"Asset");
+ $self->getAdminConsole->render($output,WebGUI::International::get('Page Export Status',"Asset"),"Asset");
}
#-------------------------------------------------------------------
diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm
index a8adf8abe..1c784fa7b 100644
--- a/lib/WebGUI/Help/Asset.pm
+++ b/lib/WebGUI/Help/Asset.pm
@@ -111,6 +111,40 @@ our $HELP = {
]
},
+ 'page export' => {
+ title => 'Page, Export',
+ body => 'Page, Export body',
+ fields => [
+ {
+ title => 'Depth',
+ description => 'Depth description',
+ namespace => 'Asset',
+ },
+ {
+ title => 'Export as user',
+ description => 'Export as user description',
+ namespace => 'Asset',
+ },
+ {
+ title => 'directory index',
+ description => 'directory index description',
+ namespace => 'Asset',
+ },
+ {
+ title => 'Extras URL',
+ description => 'Extras URL description',
+ namespace => 'Asset',
+ },
+ {
+ title => 'Uploads URL',
+ description => 'Uploads URL description',
+ namespace => 'Asset',
+ },
+ ],
+ related => [
+ ],
+ },
+
'metadata manage'=> {
title => 'content profiling',
body => 'metadata manage body',
diff --git a/lib/WebGUI/Help/WebGUI.pm b/lib/WebGUI/Help/WebGUI.pm
index f64ec4d72..45eaf4bf1 100644
--- a/lib/WebGUI/Help/WebGUI.pm
+++ b/lib/WebGUI/Help/WebGUI.pm
@@ -776,14 +776,6 @@ our $HELP = {
}
]
},
- 'page export' => {
- title => 'Page, Export',
- body => 'Page, Export body',
- fields => [
- ],
- related => [
- ],
- },
'glossary' => {
title => 'glossary title',
body => 'glossary body',
diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm
index 2a62b4a65..2c817af2b 100644
--- a/lib/WebGUI/i18n/English/Asset.pm
+++ b/lib/WebGUI/i18n/English/Asset.pm
@@ -651,6 +651,49 @@ each asset under the tab "Meta" in the asset properties.
message => q|Directory Index|,
},
+ 'Depth description' => {
+ message => q|Sets the depth of the page tree to export. Use a depth of 0 to export only the current page. |,
+ lastUpdated => 1121361557,
+ },
+
+ 'Export as user description' => {
+ message => q|Run the export as this user. Defaults to Visitor.|,
+ lastUpdated => 1121361557,
+ },
+
+ 'directory index description' => {
+ message => q|If the URL of the Asset to be exported looks like a directory, the directory index will
+be appended to it.|,
+ lastUpdated => 1121361557,
+ },
+
+ 'Extras URL description' => {
+ message => q|Sets the Extras URL. Defaults to the configured extrasURL in the WebGUI
+config file.|,
+ lastUpdated => 1121361557,
+ },
+
+ 'Uploads URL description' => {
+ message => q|Sets the Uploads URL. Defaults to the configured uploadsURL in the WebGUI config file.|,
+ lastUpdated => 1121361557,
+ },
+
+ 'Page, Export' => {
+ message => q|Page, Export|,
+ lastUpdated => 1089039511,
+ context => q|Help title for Page Export operation|
+ },
+ 'Page, Export body' => {
+ message => q|
+The Export Page function allows you to export WebGUI pages to static
+HTML files on disk. The "exportPath" variable in the WebGUI
+config file must be enabled for this function to be available.
+ |,
+ lastUpdated => 1121361734,
+ context => q|Help body for Page Export operation|
+ },
+
+
};
1;
diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm
index 1ff791fd5..e4b021d13 100644
--- a/lib/WebGUI/i18n/English/WebGUI.pm
+++ b/lib/WebGUI/i18n/English/WebGUI.pm
@@ -3662,71 +3662,6 @@ Privileges and styles assigned to pages in the package will not be copied when t
lastUpdated => 1052560369
},
- 'Export Page' => {
- message => q|Export Page|,
- lastUpdated => 1089039511,
- context => q|Title for the Export Page operation|
- },
- 'Page to export' => {
- message => q|Page to export|,
- lastUpdated => 1089039511,
- context => q|Field label for the Export Page operation|
- },
- 'Export as user' => {
- message => q|Export as user|,
- lastUpdated => 1089039511,
- context => q|Field label for the Export Page operation|
- },
- 'Page Export Status' => {
- message => q|Page Export Status|,
- lastUpdated => 1089039511,
- context => q|Title for the Page Export Status operation|
- },
- 'Depth' => {
- message => q|Depth|,
- lastUpdated => 1089039511,
- context => q|Field label for the Export Page operation|
- },
- 'Extras URL' => {
- message => q|Extras URL|,
- lastUpdated => 1089039511,
- context => q|Field label for the Export Page operation|
- },
- 'Uploads URL' => {
- message => q|Uploads URL|,
- lastUpdated => 1089039511,
- context => q|Field label for the Export Page operation|
- },
- 'Page, Export' => {
- message => q|Page, Export|,
- lastUpdated => 1089039511,
- context => q|Help title for Page Export operation|
- },
- 'Page, Export body' => {
- message => q|
-The Export Page function allows you to export WebGUI pages to static HTML
-files on disk.
-The "exportPath" variable in the WebGUI config file must be enabled
-for this function to be available.
-Depth
-Sets the depth of the page tree to export. Use a depth of 0 to export only
-the current page.
-Export as user
-Run the export as this user. Defaults to Visitor.
-Alternate style
-Sets an alternate style for the export. If this option is set, all pages
-will be exported using the selected style.
-Extras URL
-Sets the Extras URL. Defaults to the configured extrasURL in the WebGUI
-config file.
-Uploads URL
-Sets the Uploads URL. Defaults to the configured uploadsURL in the WebGUI
-config file.
- |,
- lastUpdated => 1102031745,
- context => q|Help body for Page Export operation|
- },
-
'tinymce' => {
message => q|TinyMCE (IE, mozilla)|,
lastUpdated =>1092748557,