hover help
This commit is contained in:
parent
73922afb41
commit
529d132025
3 changed files with 42 additions and 18 deletions
|
|
@ -118,16 +118,19 @@ sub getEditForm {
|
|||
$tabform->getTab("properties")->integer(
|
||||
-name=>"thumbnailSize",
|
||||
-label=>WebGUI::International::get('thumbnail size', 'Asset_Image'),
|
||||
-hoverHelp=>WebGUI::International::get('Thumbnail size description', 'Asset_Image'),
|
||||
-value=>$self->getValue("thumbnailSize")
|
||||
);
|
||||
$tabform->getTab("properties")->textarea(
|
||||
-name=>"parameters",
|
||||
-label=>WebGUI::International::get('parameters', 'Asset_Image'),
|
||||
-hoverHelp=>WebGUI::International::get('Parameters description', 'Asset_Image'),
|
||||
-value=>$self->getValue("parameters")
|
||||
);
|
||||
if ($self->get("filename") ne "") {
|
||||
$tabform->getTab("properties")->readOnly(
|
||||
-label=>WebGUI::International::get('thumbnail', 'Asset_Image'),
|
||||
-label=>WebGUI::International::get('Thumbnail', 'Asset_Image'),
|
||||
-hoverHelp=>WebGUI::International::get('thumbnail description', 'Asset_Image'),
|
||||
-value=>'<a href="'.$self->getFileUrl.'"><img src="'.$self->getThumbnailUrl.'?noCache='.time().'" alt="thumbnail" /></a>'
|
||||
);
|
||||
my ($x, $y) = $self->getStorageLocation->getSizeInPixels($self->get("filename"));
|
||||
|
|
|
|||
|
|
@ -6,6 +6,21 @@ our $HELP = {
|
|||
title => 'image add/edit title',
|
||||
body => 'image add/edit body',
|
||||
fields => [
|
||||
{
|
||||
title => 'Thumbnail size',
|
||||
description => 'Thumbnail size description',
|
||||
namespace => 'Asset_Image',
|
||||
},
|
||||
{
|
||||
title => 'Parameters',
|
||||
description => 'Parameters description',
|
||||
namespace => 'Asset_Image',
|
||||
},
|
||||
{
|
||||
title => 'Thumbnail',
|
||||
description => 'Thumbnail description',
|
||||
namespace => 'Asset_Image',
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,26 +11,32 @@ our $I18N = {
|
|||
message => q|<P>Image Assets are used to store images that you want displayed on your site.</P>
|
||||
|
||||
<P>Since Images are a subset of File Assets, they have the properties that all Assets do as well
|
||||
as File Assets. Below are the properties that are specific to Image Assets:</P>
|
||||
|
||||
<P><b>Thumbnail size</b><br/>
|
||||
A thumbnail of the Image will be created and available for use in
|
||||
templates. The longest side of the thumbnail will be set to this size
|
||||
in pixels. It defaults to the value from the sitewide setting.
|
||||
|
||||
<P><b>Parameters</b><br/>
|
||||
This is a set of extra parameters to the <IMG> tag that is generated for
|
||||
the image. You can use this to set alignment or to set the text that is displayed
|
||||
if the image cannot be displayed (such as to a text-only browser).
|
||||
|
||||
<P><b>Thumbnail</b><br/>
|
||||
If an image is currently stored in the Asset, then its thumbnail will be
|
||||
shown here.
|
||||
|,
|
||||
as File Assets. Below are the properties that are specific to Image Assets:</P>|,
|
||||
context => 'Describing image add/edit form specific fields',
|
||||
lastUpdated => 1106764520,
|
||||
lastUpdated => 1119409764,
|
||||
},
|
||||
|
||||
'Thumbnail size description' => {
|
||||
message => q|A thumbnail of the Image will be created and available for use in
|
||||
templates. The longest side of the thumbnail will be set to this size
|
||||
in pixels. It defaults to the value from the sitewide setting.|,
|
||||
lastUpdated => 1119409747,
|
||||
},
|
||||
|
||||
'Parameters description' => {
|
||||
message => q|This is a set of extra parameters to the <IMG> tag that is generated for
|
||||
the image. You can use this to set alignment or to set the text that is displayed
|
||||
if the image cannot be displayed (such as to a text-only browser).|,
|
||||
lastUpdated => 1119409747,
|
||||
},
|
||||
|
||||
'Thumbnail description' => {
|
||||
message => q|If an image is currently stored in the Asset, then its thumbnail will be
|
||||
shown here.|,
|
||||
lastUpdated => 1119409747,
|
||||
},
|
||||
|
||||
|
||||
'thumbnail size' => {
|
||||
message => q|Thumbnail Size|,
|
||||
context => q|label for Image asset form|,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue