Display all Announcements on home page, or using API

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 2 Followers

Not Ranked
8 Posts
Points 100
boyan posted on Mon, Jun 30 2008 2:49 PM

Hi, I'm trying to get all the announcements from all users to show up on the front page.

 

Is there a control I can use, such as:  <QueryOverrides runat="server" QueryType="AnnouncementsForAccessingUser" PagerID="AnnouncementsPager" PageSize="15" /> but for all users rather than just "accessing" user?

I've also looked at coding something myself, but I cannot find the correct method/class to call in the API. Can I access "announcements" from the API?

 

Thank you,

Boyan

Answered (Verified) Verified Answer

Top 10 Contributor
3,139 Posts
Points 46,680
TelligentSupportTeam

Your best bet is going to be to show the last 15 activity messages for announcements, however this will only allow you to display the titles of announcements.

To do this, ou'll want to have a look at the CSControl:ActivityMessageList control, and make sure to set QueryType to SiteActivity, and the included ActivityMessageTypes to Announcements.

There should be an example of an ActivityMessageList on the homepage, and you can refer to developer-options/chameleon/control-documentation/Control.aspx?type=CommunityServer.Controls.Messages.ActivityMessageList%2c+CommunityServer.Controls for more reference

  • | Post Points: 5

All Replies

Top 10 Contributor
3,139 Posts
Points 46,680
TelligentSupportTeam

Your best bet is going to be to show the last 15 activity messages for announcements, however this will only allow you to display the titles of announcements.

To do this, ou'll want to have a look at the CSControl:ActivityMessageList control, and make sure to set QueryType to SiteActivity, and the included ActivityMessageTypes to Announcements.

There should be an example of an ActivityMessageList on the homepage, and you can refer to developer-options/chameleon/control-documentation/Control.aspx?type=CommunityServer.Controls.Messages.ActivityMessageList%2c+CommunityServer.Controls for more reference

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com