hover help

This commit is contained in:
Colin Kuskie 2005-06-27 22:30:25 +00:00
parent 68c21b3f9f
commit 05d799b12c
3 changed files with 147 additions and 42 deletions

View file

@ -96,46 +96,57 @@ sub getEditForm {
$tabform->getTab("properties")->HTMLArea(
-value=>$self->getValue("description"),
-label=>WebGUI::International::get(85, 'Asset_Shortcut'),
-hoverHelp=>WebGUI::International::get('85 description', 'Asset_Shortcut'),
-name=>"description"
);
$tabform->getTab("display")->template(
-value=>$self->getValue("templateId"),
-label=>WebGUI::International::get('shortcut template title', 'Asset_Shortcut'),
-hoverHelp=>WebGUI::International::get('shortcut template title description', 'Asset_Shortcut'),
-namespace=>"Shortcut"
);
$tabform->getTab("display")->template(
-name=>"overrideTemplateId",
-value=>$self->getValue("overrideTemplateId") || $originalTemplate->getId,
-label=>WebGUI::International::get('override asset template', 'Asset_Shortcut'),
-hoverHelp=>WebGUI::International::get('override asset template description', 'Asset_Shortcut'),
-namespace=>$originalTemplate->get("namespace")
);
$tabform->getTab("properties")->yesNo(
-name=>"overrideTitle",
-value=>$self->getValue("overrideTitle"),
-label=>WebGUI::International::get(7,"Asset_Shortcut")
-hoverHelp=>WebGUI::International::get('7 description',"Asset_Shortcut")
);
$tabform->getTab("display")->yesNo(
-name=>"overrideDisplayTitle",
-value=>$self->getValue("overrideDisplayTitle"),
-label=>WebGUI::International::get(8,"Asset_Shortcut")
-hoverHelp=>WebGUI::International::get('8 description',"Asset_Shortcut")
);
$tabform->getTab("properties")->yesNo(
-name=>"overrideDescription",
-value=>$self->getValue("overrideDescription"),
-label=>WebGUI::International::get(9,"Asset_Shortcut")
-hoverHelp=>WebGUI::International::get('9 description',"Asset_Shortcut")
);
$tabform->getTab("display")->yesNo(
-name=>"overrideTemplate",
-value=>$self->getValue("overrideTemplate"),
-label=>WebGUI::International::get(10,"Asset_Shortcut")
-hoverHelp=>WebGUI::International::get('10 description',"Asset_Shortcut")
);
$tabform->getTab("properties")->readOnly(
-label=>WebGUI::International::get(1,"Asset_Shortcut"),
-hoverHelp=>WebGUI::International::get('1 description',"Asset_Shortcut"),
-value=>'<a href="'.$self->getShortcut->getUrl.'">'.$self->getShortcut->get('title').'</a> ('.$self->getShortcut->getId.')'
);
if($session{setting}{metaDataEnabled}) {
$tabform->getTab("properties")->yesNo(
-name=>"shortcutByCriteria",
-value=>$self->getValue("shortcutByCriteria"),
-label=>WebGUI::International::get("Asset_Shortcut by alternate criteria?","Shortcut"),
-label=>WebGUI::International::get("Shortcut by alternate criteria?","Asset_Shortcut"),
-hoverHelp=>WebGUI::International::get("Shortcut by alternate criteria? description","Asset_Shortcut"),
-extras=>q|Onchange="
if (this.form.shortcutByCriteria[0].checked) {
this.form.resolveMultiples.disabled=false;
@ -149,6 +160,7 @@ sub getEditForm {
-name=>"disableContentLock",
-value=>$self->getValue("disableContentLock"),
-label=>WebGUI::International::get("disable content lock","Asset_Shortcut")
-hoverHelp=>WebGUI::International::get("disable content lock description","Asset_Shortcut")
);
if ($self->getValue("shortcutByCriteria") == 0) {
$self->{_disabled} = 'disabled=true';
@ -157,6 +169,7 @@ sub getEditForm {
-name=>"resolveMultiples",
-value=>[ $self->getValue("resolveMultiples") ],
-label=>WebGUI::International::get("Resolve Multiples?","Asset_Shortcut"),
-hoverHelp=>WebGUI::International::get("Resolve Multiples? description","Asset_Shortcut"),
-options=>{
mostRecent=>WebGUI::International::get("Most Recent","Asset_Shortcut"),
random=>WebGUI::International::get("Random","Asset_Shortcut"),
@ -167,6 +180,7 @@ sub getEditForm {
$tabform->getTab("properties")->readOnly(
-value=>$self->_drawQueryBuilder(),
-label=>WebGUI::International::get("Criteria","Asset_Shortcut"),
-hoverHelp=>WebGUI::International::get("Criteria description","Asset_Shortcut"),
);
}
return $tabform;

View file

@ -5,6 +5,66 @@ our $HELP = {
title => '5',
body => '6',
fields => [
{
title => '85',
description => '85 description',
namespace => 'Asset_Shortcut',
},
{
title => 'shortcut template title',
description => 'shortcut template title description',
namespace => 'Asset_Shortcut',
},
{
title => 'override asset template',
description => 'override asset template description',
namespace => 'Asset_Shortcut',
},
{
title => '7',
description => '7 description',
namespace => 'Asset_Shortcut',
},
{
title => '8',
description => '8 description',
namespace => 'Asset_Shortcut',
},
{
title => '9',
description => '9 description',
namespace => 'Asset_Shortcut',
},
{
title => '1',
description => '1 description',
namespace => 'Asset_Shortcut',
},
{
title => '10',
description => '10 description',
namespace => 'Asset_Shortcut',
},
{
title => 'Shortcut by alternate criteria?',
description => 'Shortcut by alternate criteria? description',
namespace => 'Asset_Shortcut',
},
{
title => 'disable content lock',
description => 'disable content lock description',
namespace => 'Asset_Shortcut',
},
{
title => 'Resolve Multiples?',
description => 'Resolve Multiples? description',
namespace => 'Asset_Shortcut',
},
{
title => 'Criteria',
description => 'Criteria description',
namespace => 'Asset_Shortcut',
},
],
related => [
{

View file

@ -62,51 +62,77 @@ our $I18N = {
message => q|With the shortcut you can mirror an asset. This is useful if you want to reuse the same content in multiple sections of your site.
<p>
<b>NOTE:</b> The shortcut is not available through the Add Content menu, but instead through the shortcut icon on each Asset's toolbar.
<p>
<b>Asset to Mirror</b><br>
Provides a link to the original asset being mirrored.
<p>
<b>Override title?</b><br>
Set to "yes" to use the title of the shortcut instead of the original title of the asset.
<p>
<b>Override description?</b><br>
Set to "yes" to use the description of the shortcut instead of the original description of the asset.
<p>
<b>Override display title?</b><br>
Set to "yes" to use the display title setting of the shortcut instead of the original display title setting of the asset.
<p>
<b>Override template?</b><br>
Set to "yes" to use the template of the shortcut of the original template of the asset.
<p>
<b>Disable content lock?</b><br />
By default if you proxy by alternate criteria the shortcut will lock on to a particular piece of content and show you only that piece of content until the end of your session. However, in some circumstances you may wish for this content to rotate. You can do that by disabling the content lock.
<b>Shortcut by alternate criteria?</b><br>
Set to "yes" to enable selecting a asset based upon custom criteria. Metadata must be enabled for this option to function properly.
<p>
<b>Resolve Multiples?</b><br>
Sets the order to use when multiple assets are selected. Random means that if multiple assets match the shortcut criteria then the shortcut will select a random asset.<br>
Most Recent will select the most recent asset that match the shortcut criteria.
<p>
<b>Criteria</b><br>
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". <br>
A property or value must be quoted if it contains spaces. Feel free to use the criteria builder to build your statements.
<p>
<b>NOTE:</b> 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.
<b>NOTES:</b><br/>
The shortcut is not available through the Add Content menu, but instead through the shortcut icon on each Asset's toolbar.
<p>
|,
lastUpdated => 1109561313,
lastUpdated => 1119905819,
},
'85 description' => {
message => q|Content for this shortcut. This is normally not used, unless you opt to have the shortcut's
description replace the description of the original Asset.|,
lastUpdated => 1119905806,
},
'shortcut template title description' => {
message => q|Select a template from the list to display the Shortcut.|,
lastUpdated => 1119905806,
},
'override asset template description' => {
message => q|Select a template that can optionally override the original Asset template.|,
lastUpdated => 1119905806,
},
'7 description' => {
message => q|Set to "yes" to use the title of the shortcut instead of the original title of the asset.|,
lastUpdated => 1119905806,
},
'8 description' => {
message => q|Set to "yes" to use the display title setting of the shortcut instead of the original display title setting of the asset.|,
lastUpdated => 1119905806,
},
'9 description' => {
message => q|Set to "yes" to use the description of the shortcut instead of the original description of the asset.|,
lastUpdated => 1119905806,
},
'1 description' => {
message => q|Provides a link to the original Asset being mirrored.|,
lastUpdated => 1119905806,
},
'10 description' => {
message => q|Set to "yes" to use the override template of the shortcut instead of the original template of the asset.|,
lastUpdated => 1119905806,
},
'Shortcut by alternate criteria? description' => {
message => q|Set to "yes" to enable selecting a asset based upon custom criteria. Metadata must be enabled for this option to function properly.|,
lastUpdated => 1119905806,
},
'disable content lock description' => {
message => q|By default if you proxy by alternate criteria the shortcut will lock on to a particular piece of content and show you only that piece of content until the end of your session. However, in some circumstances you may wish for this content to rotate. You can do that by disabling the content lock.|,
lastUpdated => 1119905806,
},
'Resolve Multiples? description' => {
message => q|Sets the order to use when multiple assets are selected. Random means that if multiple assets match the shortcut criteria then the shortcut will select a random asset.<br>
Most Recent will select the most recent asset that match the shortcut criteria.|,
lastUpdated => 1119905806,
},
'Criteria description' => {
message => q|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". <br>
A property or value must be quoted if it contains spaces. Feel free to use the criteria builder to build your statements.|,
lastUpdated => 1119905806,
},
'greater than' => {
message => q|greater than|,
lastUpdated => 1053183804
@ -162,6 +188,11 @@ A property or value must be quoted if it contains spaces. Feel free to use the c
lastUpdated => 1053183837
},
'override asset template' => {
message => q|Override Asset Template|,
lastUpdated => 1119896310
},
'OR' => {
message => q|OR|,
lastUpdated => 1053183804