![]() |
Enterprise Systems »
Content Management Server »
General
Intermediate
License: The Code Project Open License (CPOL)
Microsoft Content Management Server Thumbnail Images PlaceholderBy Stephen HuenAn XML placeholder control that displays thumbnails of images in a Resource Gallery. |
VB.NET 1.1, Win2K, Win2003, ASP.NET, Visual Studio, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
![]()
For use in Microsoft Content Management Server, this is an XML placeholder control that displays thumbnails of images in a Resource Gallery. In authoring mode, authors specify which resource gallery to generate image thumbnails, thumbnail size, and other sorting and display properties. In presentation mode, all images in the specified Resource Gallery will be rendered as thumbnails with links to the full size images. Practical application includes showing images of an event, for example.
A C# version of this control is available here.
The placeholder control has the following public properties:
SelectGalleryDefaultValue
ThumbnailSizeDefaultValue
NumColumnsDefaultValue
SortByDefaultValue
SortOrderDefaultValue
RepeatDirectionDefaultValue
ShowImageSizeDefaultValue
ImageExtensions All these properties are optional. They allow designers to change the default values.
The look and feel of the rendered output can be customized by CSS styles. Do a view source on the rendered page to see all the CSS classes available.
<%@ Register TagPrefix="wcl"
Namespace="ProjectName.QuestechSystems.WebControls"
Assembly="ProjectName" %>
...
...
<wcl:ThumbnailImagesPlaceholder id="ThumbnailImagesPlaceholder1"
runat="server" PlaceholderToBind="ThumbnailImages"
NumColumnsDefaultValue="3"
ThumbnailSizeDefaultValue="64" SortByDefaultValue="Display Name"
SortOrderDefaultValue="Ascending" RepeatDirectionDefaultValue="Horizontal"
ImageExtensions="gif,jpg,png" ShowImageSizeDefaultValue="Yes">
</wcl:ThumbnailImagesPlaceholder>
To register the custom action, add:
<%@ Register TagPrefix="CustomAction"
Namespace="ProjectName.QuestechSystems.WebControls.ConsoleControls"
Assembly="ProjectName" %>
Change:
<CmsConsole:AuthoringSaveNewAction id="AuthoringSaveNewAction1"
runat="server">
...
</CmsConsole:AuthoringSaveNewAction>
to:
<CustomAction:ValidatedSaveNewAction id="AuthoringSaveNewAction1"
runat="server">
...
</CustomAction:ValidatedSaveNewAction>
and similarly for AuthoringReeditSaveAction and AuthoringReeditSaveAndExitAction.
NullReferenceException when control is added to an existing template and an existing page using the template is edited.
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 20 Apr 2005 Editor: Smitha Vijayan |
Copyright 2004 by Stephen Huen Everything else Copyright © CodeProject, 1999-2009 Web19 | Advertise on the Code Project |