Article Details
About Article Templates

Version 3.2 adds Templates to the Articles module. Templates enable an extremely flexible method of displaying Articles. An unlimited number of templates can be created to display article listings by anyone with basic asp.net skills.

The new architecture enables an unlimited number of custom views to be defined to display the list of articles. There are currently 5 templates included:
  • Standard- Includes the following with minimal formatting: Title, Image, Description
  • No Image- Same as Standard but without Images.
  • Complete- Adds Author and Creation Date to the Standard Template
  • Title Only- A very compact list where just titles are displayed.
  • Fancy- Like standard but adds background colors and other effects. This is included just as an example of how to present a fancier display, the possibilities are quite limitless.
The actual templates are defined in ascx files that inherit from ArticleListBase.ascx.vb. You can modify any of the existing templates using standard asp.net coding and you can add additional templates by:
1.) Copying ArticleList_Standard.ascx and saving it as a new file with a name that ends with ".ascx"
2.) Make the desired modifications to the new file
3.) Edit the Settings.ascx file in the Articles directory and add a new Item to the drpTemplate DropDownList.

I hope to put together a place to share templates. If you would like to share your template, please e-mail it to me and I will make it available.

Written By: David O'Leary
Date Posted: 8/14/2005
Number of Views: 5598

Return