This project is read-only.

Title and Description length?

Nov 17, 2010 at 3:38 PM

       Recently I've been requested to add some long descriptions and titles to the pictures in my gallery, however I have been unable to, since it seems the module has a maximum number of acceptable characters for both the title and description..

      I've tried to increase the height of both title and description in the gallery layout without success, each one of them takes around 3-4 lines, for example:

"Trio de soupes froides : Crème de fenouil à l'huile de truffe blanche, Velouté de petits pois à la menthe fraîche, Soupe de jeunes carottes à l'orange, au gingembre et au cumin"

  It will cuts itself and ends up with three points, doing the following:

"Trio de soupes froides : Crème de fenouil à l'huile de truffe blanche, Velouté de petits pois à la menthe fraîche, Soupe de jeunes carottes à l'orange, au gingembre et au ..."

     And when the description is longer it also cuts it like before, is there something I can do about this?

       Thanks for your help!!

Nov 18, 2010 at 2:33 PM
Edited Nov 23, 2010 at 4:35 PM

If you are trying to fit the description onto one line, try changing the font size.  Here are some 'SlideDescription' settings I use for one of my galleries.  Note the font size and margin settings.

	<module name="SlideDescription">
		<option name="Enabled" value="true" />
		<option name="TitleHeight" value="30" />

		<option name="TitleForeground" value="White" />
		<option name="TitleBackground" value="Black" />
		<option name="TitleBackgroundOpacity" value="0" />
		<option name="TitleFontSize" value="14" />
		<option name="TitleMargin" value="11, 8, 0, 0" />

		<option name="DescriptionHeight" value="30" />
		<option name="DescriptionForeground" value="White" />
		<option name="DescriptionBackground" value="DarkGray" />
		<option name="DescriptionBackgroundOpacity" value="0" />
		<option name="DescriptionFontSize" value="11" />
		<option name="DescriptionMargin" value="12, 4, 0, 0" />

		<option name="Background" value="#333333" />
		<option name="BackgroundOpacity" value=".55" />
		<option name="BackgroundRadiusX" value="0" />
		<option name="BackgroundRadiusY" value="0" />
		<option name="BackgroundMargin" value="0" />

		<option name="CloseButtonBackground1Brush" value="Transparent" />
		<option name="CloseButtonBackground2Brush" value="Transparent" />
		<option name="CloseButtonForegroundBrush" value="#333333" />
		<option name="CloseButtonForegroundHoverBrush" value="White" />
		<option name="CloseButtonRadiusX" value="4" />
		<option name="CloseButtonRadiusY" value="4" />
		<option name="CloseButtonMargin" value="3,-2,5,3" />
		<option name="CloseButtonWidth" value="15" />
		<option name="CloseButtonHeight" value="15" />
		<option name="CloseButtonPathWidth" value="10" />
		<option name="CloseButtonPathHeight" value="10" />
		<option name="CloseButtonPathData" value="M59.156,59.156 ... 594 59.156,59.156 z" />

Note: CloseButtonPathData value is truncated for readability.
Nov 23, 2010 at 3:41 PM

  Thanks, Brad.  I try to set font size as "12" and "TitleHeight" as "120" , but it still cut title. I also try to set font size and "DescriptionHeight" the same way, still the same issue.
Long content will be cut no matter what settings.

Nov 23, 2010 at 3:46 PM

I wonder if a break tag <br/>, or something similar, would work.  This would mean having to manually determine line returns but would get you to your desired outcome.

Nov 23, 2010 at 3:57 PM

  I just try input <br/> in slide description. Unluckily it doesn't work too. I guess there are some mechanism which will shorten both title and description in module source.

May be  I need delve into source code for more detail.  Thanks.

Nov 23, 2010 at 4:05 PM

I think I found how to do this.  Use the charactor code &#xD; for a line return.  I do not know if the line spacing is adjustable.  You will likely need to increase the DescriptionHeight value to fit the additional spacing to display all the text.

	title="Woof woof"
	description="This is the first or top line of the description. &#xD; This part of the description appears on the next line."
	thumbnail="Images/file-name_thumb.jpg" />

Do not use &#0D; for a line return as it will break the gallery.

Nov 23, 2010 at 4:27 PM

    The "&#xD;" do increase title display length in some measure.  However, it also display in title which will make visitor confused.  Thanks very much for your help,Brad. It seems
we need find other solution to display long content.