move Export Page help from WebGUI to Asset. add hover help
This commit is contained in:
parent
802ee8c66a
commit
3fc303c9e0
5 changed files with 84 additions and 75 deletions
|
|
@ -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 = '<IFRAME SRC="'.$iframeUrl.'" TITLE="'.WebGUI::International::get('Page Export Status',"Asset").'" WIDTH="410" HEIGHT="200"></IFRAME>';
|
||||
$self->getAdminConsole->render($output,WebGUI::International::get('Page Export Status'),"Asset");
|
||||
$self->getAdminConsole->render($output,WebGUI::International::get('Page Export Status',"Asset"),"Asset");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -776,14 +776,6 @@ our $HELP = {
|
|||
}
|
||||
]
|
||||
},
|
||||
'page export' => {
|
||||
title => 'Page, Export',
|
||||
body => 'Page, Export body',
|
||||
fields => [
|
||||
],
|
||||
related => [
|
||||
],
|
||||
},
|
||||
'glossary' => {
|
||||
title => 'glossary title',
|
||||
body => 'glossary body',
|
||||
|
|
|
|||
|
|
@ -651,6 +651,49 @@ each asset under the tab "Meta" in the asset properties.</p>
|
|||
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. </p>|,
|
||||
lastUpdated => 1121361557,
|
||||
},
|
||||
|
||||
'Export as user description' => {
|
||||
message => q|Run the export as this user. Defaults to Visitor.</p>|,
|
||||
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.</p>|,
|
||||
lastUpdated => 1121361557,
|
||||
},
|
||||
|
||||
'Extras URL description' => {
|
||||
message => q|Sets the Extras URL. Defaults to the configured extrasURL in the WebGUI
|
||||
config file.</p>|,
|
||||
lastUpdated => 1121361557,
|
||||
},
|
||||
|
||||
'Uploads URL description' => {
|
||||
message => q|Sets the Uploads URL. Defaults to the configured uploadsURL in the WebGUI config file.</p>|,
|
||||
lastUpdated => 1121361557,
|
||||
},
|
||||
|
||||
'Page, Export' => {
|
||||
message => q|Page, Export|,
|
||||
lastUpdated => 1089039511,
|
||||
context => q|Help title for Page Export operation|
|
||||
},
|
||||
'Page, Export body' => {
|
||||
message => q|
|
||||
<p>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.</p>
|
||||
|,
|
||||
lastUpdated => 1121361734,
|
||||
context => q|Help body for Page Export operation|
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -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|
|
||||
<p>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.</p>
|
||||
<p><b>Depth<br>
|
||||
</b>Sets the depth of the page tree to export. Use a depth of 0 to export only
|
||||
the current page. </p>
|
||||
<p><b>Export as user<br>
|
||||
</b>Run the export as this user. Defaults to Visitor.</p>
|
||||
<p><b>Alternate style<br>
|
||||
</b>Sets an alternate style for the export. If this option is set, all pages
|
||||
will be exported using the selected style. </p>
|
||||
<p><b>Extras URL<br>
|
||||
</b>Sets the Extras URL. Defaults to the configured extrasURL in the WebGUI
|
||||
config file.</p>
|
||||
<p><b>Uploads URL<br>
|
||||
</b>Sets the Uploads URL. Defaults to the configured uploadsURL in the WebGUI
|
||||
config file.</p>
|
||||
|,
|
||||
lastUpdated => 1102031745,
|
||||
context => q|Help body for Page Export operation|
|
||||
},
|
||||
|
||||
'tinymce' => {
|
||||
message => q|TinyMCE (IE, mozilla)|,
|
||||
lastUpdated =>1092748557,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue