diff --git a/lib/WebGUI/Asset/Shortcut.pm b/lib/WebGUI/Asset/Shortcut.pm index 04e21896b..b85270aeb 100644 --- a/lib/WebGUI/Asset/Shortcut.pm +++ b/lib/WebGUI/Asset/Shortcut.pm @@ -338,7 +338,7 @@ sub view { my %var = ( isShortcut => 1, 'shortcut.content' => $content, - 'shortcut.label' => 'Shortcut', + 'shortcut.label' => WebGUI::International::get('3',"Shortcut"); originalURL => $self->getShortcut->getUrl ); return $self->processTemplate(\%var,$self->getValue("templateId")); diff --git a/lib/WebGUI/Help/Shortcut.pm b/lib/WebGUI/Help/Shortcut.pm index cded3d023..93cfc38d5 100644 --- a/lib/WebGUI/Help/Shortcut.pm +++ b/lib/WebGUI/Help/Shortcut.pm @@ -9,10 +9,26 @@ our $HELP = { tag => 'wobjects using', namespace => 'WebGUI' }, - { - tag => 'metadata manage', - namespace => 'MetaData' - }, + { + tag => 'metadata manage', + namespace => 'Asset' + }, + + ] + }, + + 'shortcut template' => { + title => 'shortcut template title', + body => 'shortcut template body', + related => [ + { + tag => 'wobjects using', + namespace => 'WebGUI' + }, + { + tag => 'template language', + namespace => 'Template' + }, ] }, diff --git a/lib/WebGUI/i18n/English/Shortcut.pm b/lib/WebGUI/i18n/English/Shortcut.pm index e9844a37e..125eeb092 100644 --- a/lib/WebGUI/i18n/English/Shortcut.pm +++ b/lib/WebGUI/i18n/English/Shortcut.pm @@ -60,7 +60,7 @@ our $I18N = {
Asset to Mirror
-Provides a link to the original wobject being proxied.
+Provides a link to the original wobject being mirrored.
Override title?
@@ -92,10 +92,10 @@ Most Recent will select the most recent asset that match the shortcut criteria.
A statement to determinate what to mirror, in the form of "color = blue and weight != heavy". Multiple expressions may be joined with "and" and "or".
A property or value must be quoted if it contains spaces. Feel free to use the criteria builder to build your statements.
-NOTE: Shortcut will automatically add a template variable to the asset it's mirroring called 'original.page.url'. You can use that to link to the original content that's being proxied. +NOTE: Shortcut will automatically add a template variable to the asset it's mirroring called 'originalURL'. You can use that to link to the original content that's being mirrored.
|, - lastUpdated => 1101795461, + lastUpdated => 1109524349, }, 'greater than' => { @@ -163,6 +163,25 @@ A property or value must be quoted if it contains spaces. Feel free to use the c lastUpdated => 1031514049 }, + 'shortcut template title' => { + message => q|Shortcut Template|, + lastUpdated => 1109525763, + }, + + 'shortcut template body' => { + message => q|
These variables are available in Shortcut Templates:
+shortcut.content
+The content from the mirrored Asset. If any overrides were enabled in the Shortcut then the override content will be used instead of the content from the mirrored Asset.
originalURL
+The URL to the Asset being mirrored by this Shortcut.
isShortcut
+A boolean indicating that this Asset is a Shortcut. This can be used in conjuction with another boolean for Admin mode to quickly show Content Managers that this is a Shortcut Asset.
shortcut.label
+The word "Shortcut".