ActiveTopics
The ActiveTopics server control displays a forum's most active or most recent topics. The most active are determined by the number of new posts in a topic, or how many replies a post receives.
Inserting the ActiveTopics server control onto a page
Prerequisite
You must have installed the server controls. See Installing server controls into Visual Studio Toolbox.
- In Visual Studio, choose View > Toolbox.
- Click the Ektron server control tab to display the server controls.
- Drag the ActiveTopics server control and drop it into the desired location on the page.
NOTE: You also can place the cursor on the page where you want the server control, then double click the server control that you want.
<CMS:ActiveTopics ID="ActiveTopics1" runat="server" />
- Click on
ActiveTopics
in the code to display and modify the control’s properties using the Properties window of Visual Studio. The page is updated as you modify the property values.
ActiveTopic properties
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. For information about native .NET properties such as font, height, width and border style, use Visual Studio® help.
- BoardID (Long)
The ID of the board from which to get entries. If you don’t know the ID, click Ellipses (), then sign in, browse to, and select a discussion board.
- CacheInterval (Double)
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See also: Caching with server controls.
- DisplayMode (eDisplayMode)
Choose between Active or Recent. The default is Active.
- Active. Lists the most active posts.
- Recent. Lists recently added posts.
- Active. Lists the most active posts.
- DoInitFill (Boolean)
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
- Hide (Boolean)
Select False to display this server control on the page. Select True to suppress it.
- Language (Integer)
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
- MaxNumber (Integer)
The maximum number of topics listed. The default is 10.
- SuppressWrapperTags (Boolean)
Suppresses the output of the span/div tags around the control.
- True. Suppress wrap tags.
- False (default). Allow wrap tags.
- URLPath (String)
Enter the path to the Forum server control’s Web page. For example:
http://<your site>/siteroot/forum.aspx
or/CMS400Developer/forum.aspx
. If your Forum page and your Active Topics page are in the same folder, just enter the name of the page. For example:forum.aspx.
- WrapTag (String)
Lets a developer specify a server control’s tag.
- Span (default). Designate an inline portion of an HTML document as a span element.
- Div. Apply attributes to a block of code.
- Custom. Lets you use a custom tag.