placed Asset/File/Image help into its own files
This commit is contained in:
parent
cadcac19ca
commit
0728c5375d
5 changed files with 79 additions and 67 deletions
|
|
@ -116,17 +116,17 @@ sub getEditForm {
|
|||
my $tabform = $self->SUPER::getEditForm();
|
||||
$tabform->getTab("properties")->integer(
|
||||
-name=>"thumbnailSize",
|
||||
-label=>WebGUI::International::get('thumbnail size', 'Asset'),
|
||||
-label=>WebGUI::International::get('thumbnail size', 'Image'),
|
||||
-value=>$self->getValue("thumbnailSize")
|
||||
);
|
||||
$tabform->getTab("properties")->textarea(
|
||||
-name=>"parameters",
|
||||
-label=>WebGUI::International::get('parameters', 'Asset'),
|
||||
-label=>WebGUI::International::get('parameters', 'Image'),
|
||||
-value=>$self->getValue("parameters")
|
||||
);
|
||||
if ($self->get("filename") ne "") {
|
||||
$tabform->getTab("properties")->readOnly(
|
||||
-label=>WebGUI::International::get('thumbnail', 'Asset'),
|
||||
-label=>WebGUI::International::get('thumbnail', 'Image'),
|
||||
-value=>'<a href="'.$self->getFileUrl.'"><img src="'.$self->getThumbnailUrl.'?noCache='.time().'" alt="thumbnail" /></a>'
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,21 +53,6 @@ our $HELP = {
|
|||
]
|
||||
},
|
||||
|
||||
'image add/edit' => {
|
||||
title => 'image add/edit title',
|
||||
body => 'image add/edit body',
|
||||
related => [
|
||||
{
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
{
|
||||
tag => 'file add/edit',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
'metadata manage'=> {
|
||||
title => 'content profiling',
|
||||
body => 'metadata manage body',
|
||||
|
|
|
|||
22
lib/WebGUI/Help/Image.pm
Normal file
22
lib/WebGUI/Help/Image.pm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package WebGUI::Help::Image;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'image add/edit' => {
|
||||
title => 'image add/edit title',
|
||||
body => 'image add/edit body',
|
||||
related => [
|
||||
{
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
{
|
||||
tag => 'file add/edit',
|
||||
namespace => 'File'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
@ -180,37 +180,6 @@ This is the snippet. Either type it in or copy and paste it into the form field
|
|||
lastUpdated => 1106683569,
|
||||
},
|
||||
|
||||
'image add/edit title' => {
|
||||
message => q|Image, Add/Edit|,
|
||||
lastUpdated => 1106762707,
|
||||
},
|
||||
|
||||
'image add/edit body' => {
|
||||
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.
|
||||
|,
|
||||
context => 'Describing image add/edit form specific fields',
|
||||
lastUpdated => 1106764520,
|
||||
},
|
||||
|
||||
|
||||
|
||||
'extra head tags' => {
|
||||
message => q|Extra HEAD tags|,
|
||||
context => q|label for Asset form|,
|
||||
|
|
@ -258,24 +227,6 @@ The URL where the user will be redirected.
|
|||
lastUpdated => 1107387324,
|
||||
},
|
||||
|
||||
'thumbnail size' => {
|
||||
message => q|Thumbnail Size|,
|
||||
context => q|label for Image asset form|,
|
||||
lastUpdated => 1106609855
|
||||
},
|
||||
|
||||
'parameters' => {
|
||||
message => q|Parameters|,
|
||||
context => q|label for Image asset form|,
|
||||
lastUpdated => 1106609855,
|
||||
},
|
||||
|
||||
'thumbnail' => {
|
||||
message => q|Thumbnail|,
|
||||
context => q|label for Image asset form|,
|
||||
lastUpdated => 1106765841
|
||||
},
|
||||
|
||||
'errorEmptyField' => {
|
||||
message => q|<p><b>Error: Field name may not be empty.</b></p>|,
|
||||
lastUpdated => 1089039511,
|
||||
|
|
|
|||
54
lib/WebGUI/i18n/English/Image.pm
Normal file
54
lib/WebGUI/i18n/English/Image.pm
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package WebGUI::i18n::English::Image;
|
||||
|
||||
our $I18N = {
|
||||
|
||||
'image add/edit title' => {
|
||||
message => q|Image, Add/Edit|,
|
||||
lastUpdated => 1106762707,
|
||||
},
|
||||
|
||||
'image add/edit body' => {
|
||||
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.
|
||||
|,
|
||||
context => 'Describing image add/edit form specific fields',
|
||||
lastUpdated => 1106764520,
|
||||
},
|
||||
|
||||
'thumbnail size' => {
|
||||
message => q|Thumbnail Size|,
|
||||
context => q|label for Image asset form|,
|
||||
lastUpdated => 1106609855
|
||||
},
|
||||
|
||||
'parameters' => {
|
||||
message => q|Parameters|,
|
||||
context => q|label for Image asset form|,
|
||||
lastUpdated => 1106609855,
|
||||
},
|
||||
|
||||
'thumbnail' => {
|
||||
message => q|Thumbnail|,
|
||||
context => q|label for Image asset form|,
|
||||
lastUpdated => 1106765841
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue