diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 5c2e1a5ff..1d1d51f93 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,6 +1,7 @@ 7.4.3 - Data Forms set reply to to the same as the from field - Config file bugs fixed, see gotcha.txt for details. + - Added export to context menu in asset manager 7.4.2 diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index d0b5fc045..4dc362e8a 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1367,6 +1367,9 @@ sub manageAssets { ct_contextMenu.addLink("'.$self->getUrl.'","'.$i18n->get("view").'"); '."\n"; $more .= 'ct_contextMenu.addLink("'.$self->getUrl("func=edit;proceed=manageAssets").'","'.$i18n->get("edit").'");' unless ($self->isLocked); $more .= 'ct_contextMenu.addLink("'.$self->getUrl("func=lock;proceed=manageAssets").'","'.$i18n->get("lock").'");' unless ($self->isLocked); + if (defined $self->session->config->get("exportPath")) { + $more .= 'ct_contextMenu.addLink("'.$self->getUrl("func=export").'","'.$i18n->get("Export","Icon").'");'; + } $more .= "\nct_contextMenu.print();\n\n"; push(@crumbtrail,$more); } else { @@ -1396,6 +1399,9 @@ sub manageAssets { contextMenu.addLink("'.$child->getUrl("func=manageRevisions").'","'.$i18n->get("revisions").'"); contextMenu.addLink("'.$child->getUrl.'","'.$i18n->get("view").'"); '."\n"; $output .= 'contextMenu.addLink("'.$child->getUrl("func=lock;proceed=manageAssets").'","'.$i18n->get("lock").'");' unless ($child->isLocked); + if (defined $self->session->config->get("exportPath")) { + $output .= 'contextMenu.addLink("'.$child->getUrl("func=export").'","'.$i18n->get("Export","Icon").'");'; + } my $title = $child->getTitle; $title =~ s/\'/\\\'/g; my $locked;