bugfixes
This commit is contained in:
parent
d0984032a3
commit
f058d6f000
2 changed files with 11 additions and 16 deletions
|
|
@ -52,6 +52,7 @@
|
||||||
- The context menu in the asset manager is now accessible via left-click-hold
|
- The context menu in the asset manager is now accessible via left-click-hold
|
||||||
for more familiarity with mac users.
|
for more familiarity with mac users.
|
||||||
- Added "create shortcut" as a context menu option in the asset manager.
|
- Added "create shortcut" as a context menu option in the asset manager.
|
||||||
|
- Fixed generateContent.pl to work with the new asset tree.
|
||||||
|
|
||||||
|
|
||||||
6.5.6
|
6.5.6
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ $userId = 1;
|
||||||
|
|
||||||
GetOptions(
|
GetOptions(
|
||||||
'configFile:s'=>\$configFile,
|
'configFile:s'=>\$configFile,
|
||||||
'pageId:i'=>\$pageId,
|
'pageId:s'=>\$pageId,
|
||||||
'userId:i'=>\$userId,
|
'userId:s'=>\$userId,
|
||||||
'toFile:s'=>\$toFile,
|
'toFile:s'=>\$toFile,
|
||||||
'stripHTML'=>\$stripHTML,
|
'stripHTML'=>\$stripHTML,
|
||||||
'help'=>\$help,
|
'help'=>\$help,
|
||||||
|
|
@ -50,7 +50,7 @@ Usage: perl $0 --configFile=<webguiConfig>
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
--pageId Set the page to be generated.
|
--assetId Set the page to be generated.
|
||||||
|
|
||||||
--help Displays this message.
|
--help Displays this message.
|
||||||
|
|
||||||
|
|
@ -58,7 +58,7 @@ Options:
|
||||||
Defaults to "1" (Visitor).
|
Defaults to "1" (Visitor).
|
||||||
|
|
||||||
--styleId Set an alternate style for the page.
|
--styleId Set an alternate style for the page.
|
||||||
Defaults to page's default style.
|
Defaults to asset's default style.
|
||||||
|
|
||||||
--toFile Set the path and filename to write the
|
--toFile Set the path and filename to write the
|
||||||
content to instead of standard out.
|
content to instead of standard out.
|
||||||
|
|
@ -69,25 +69,19 @@ Options:
|
||||||
text may have formatting problems as a
|
text may have formatting problems as a
|
||||||
result.
|
result.
|
||||||
|
|
||||||
--relativeUrls If set, all navigation URL's will be relative
|
|
||||||
instead of absolute. Defaults to "0" (absolute
|
|
||||||
URLs)
|
|
||||||
|
|
||||||
STOP
|
STOP
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Open WebGUI session
|
# Open WebGUI session
|
||||||
WebGUI::Session::open($webguiRoot,$configFile);
|
WebGUI::Session::open($webguiRoot,$configFile);
|
||||||
WebGUI::Session::refreshUserInfo(3,$session{dbh});
|
WebGUI::Session::refreshUserInfo($userId,$session{dbh});
|
||||||
|
|
||||||
my $e = WebGUI::Export->new(
|
|
||||||
pageId => $pageId,
|
my $asset = WebGUI::Asset->new($pageId);
|
||||||
userId => $userId,
|
$asset->{_properties}{styleTemplateId} = $styleId if ($styleId);
|
||||||
styleId => $styleId,
|
my $content = $asset->www_view;
|
||||||
stripHTML => $stripHTML,
|
$content = WebGUI::HTML::filter($content,"all") if ($stripHTML);
|
||||||
relativeUrls => $relativeUrls
|
|
||||||
);
|
|
||||||
|
|
||||||
my $content = $e->generate;
|
my $content = $e->generate;
|
||||||
if ($toFile) {
|
if ($toFile) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue