![]() |
Enterprise Systems »
Content Management Server »
General
Intermediate
Microsoft Content Management Server Thumbnail Images Placeholder (C#)By Stephen HuenAn XML placeholder control that displays thumbnails of images in a Resource Gallery. |
C#.NET 1.1, .NET 2.0, Win2K, Win2003, ASP.NET, VS.NET2003, VS2005, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
![]()
For use in the Microsoft Content Management Server, this is an XML placeholder control that displays thumbnails of images in a Resource Gallery. In authoring mode, the authors specify which Resource Gallery to generate image thumbnails, the 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 applications include showing the images of an event, for example.
A VB.NET 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 authoring label text and 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="QuestechSystems.WebControls"
Assembly=""Web Control Library Assembly Name" %>
...
...
<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 a custom action, add:
<%@ Register TagPrefix="CustomAction"
Namespace="QuestechSystems.WebControls.ConsoleControls"
Assembly=""Web Control Library Assembly Name" %>
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 the 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: 17 May 2006 Editor: Smitha Vijayan |
Copyright 2004 by Stephen Huen Everything else Copyright © CodeProject, 1999-2009 Web12 | Advertise on the Code Project |