what option do i use to always show the description?

Apr 21, 2008 at 8:07 PM
(or where do i look so I don't need to bother ya'll with a question I can answer myself)?

Just some guidance please?
May 1, 2008 at 5:29 PM
hi,

i had the same problem and did the following:



in SlideDescription.js i added a new option called showPermanently:

SlideShow.merge(this.options,
{
top: 0,
left: 0,
right: 0,
bottom: 0,
...
slideAnimationDuration: 0.6,
hideIfEmpty: false,
/// added showPermanently option
showPermanently: true
});



then i modified some of the functions below:

onSlideLoading: function(sender, e)
{
/// <summary>Updates the title and description when a new slide is loaded.</summary>
/// <param name="sender">The event source.</param>
/// <param name="e">The event arguments.</param>

this.titleText = e ? e.title : "";
this.descriptionText = e ? e.description : "";

this.setTitle(this.titleText);
this.setDescription(this.descriptionText);

///added to show description permanently
if (this.options.showPermanently)
this.slideIn();

if (this.options.hideIfEmpty && !this.titleText && !this.descriptionText)
this.slideOut();
},

onMouseEnter: function(sender, e)
{
/// <summary>Triggers the slide animation.</summary>
/// <param name="sender">The event source.</param>
/// <param name="e">The event arguments.</param>

/// added a condition to take into account the showPermanently option
if (!this.options.showPermanently) {
if (!this.options.hideIfEmpty || this.titleText || this.descriptionText)
this.slideIn();
}

},

onMouseLeave: function(sender, e)
{
/// <summary>Reverses the slide animation.</summary>
/// <param name="sender">The event source.</param>
/// <param name="e">The event arguments.</param>

/// added a condition to take into account the showPermanently option
if (!this.options.showPermanently)
this.slideOut();
},



i'm not sure if this is the best way to do it, but it worked for me...
of course you could set the default value for showPermanently to false (in order not to affect the current functionality) and add into the config file a line that sets showPermanently to true.