Give the Carousel a minimum width, and expose it as a template variable to help

YUI Carousel with rendering.  Adjust default template, Help, i18n.
Fixes bug #10511.
This commit is contained in:
Colin Kuskie 2009-08-20 23:12:59 +00:00
parent bd0d7c080c
commit 5ef030d1f8
6 changed files with 42 additions and 19 deletions

View file

@ -47,6 +47,13 @@ sub definition {
hoverHelp =>$i18n->get('carousel template description'),
label =>$i18n->get('carousel template label'),
},
slideWidth =>{
fieldType => "integer",
defaultValue => 0,
tab => "display",
hoverHelp => $i18n->get('carousel slideWidth description'),
label => $i18n->get('carousel slideWidth label'),
},
items =>{
noFormPost =>1,
fieldType =>'text',
@ -274,23 +281,5 @@ sub view {
return $self->processTemplate($var, undef, $self->{_viewTemplate});
}
#-------------------------------------------------------------------
=head2 www_edit ( )
Web facing method which is the default edit page. This method is entirely
optional. Take it out unless you specifically want to set a submenu in your
adminConsole views.
=cut
#sub www_edit {
# my $self = shift;
# return $self->session->privilege->insufficient() unless $self->canEdit;
# return $self->session->privilege->locked() unless $self->canEditIfLocked;
# my $i18n = WebGUI::International->new($self->session, "Asset_Carousel");
# return $self->getAdminConsole->render($self->getEditForm->print, $i18n->get("edit title"));
#}
1;
#vim:ft=perl