I'd like to add the "Popular Tags" element to our site's home page. I would probably only want the popular blog tags, but the popular forum tags may be useful as well (once our forums actually become popular).
I've tried inserting the tag cloud into a few controls that I thought could handle it, but to no avail. Any help is truly appreciated.
In the \web\themes\default\masters\Master.ascx add this line near the top (where all the other namespace registration is):
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
Then, add the following section (copied straight out of \web\themes\default\skins\blogs\skin-aggregatecolumn.ascx file which normally generates the tag cloud):
<div class="CommonSidebarArea"> <h4 class="CommonSidebarHeader"> <cs:ResourceControl ResourceName="PopularTags" runat="server" /> </h4> <div class="CommonSidebarContent"> <CS:TagCloud ApplicationType="weblog" TagCloudCssClasses="CommonTag6,CommonTag5,CommonTag4,CommonTag3,CommonTag2,CommonTag1" runat="server" id="TagCloud" MaximumNumberOfTags="25" ShowTagCounts="false" IgnoreFilterTags="true" CssClass="CommonSidebarTagCloud" /> </div> <div class="CommonSidebarFooter"> <a href="<%=SiteUrls.Instance().TagsHome %>"><cs:ResourceControl ResourceName="ViewAllTags" runat="server" /></a> </div></div>
As you can see, this one has a parameter of ApplicationType="weblog", meaning it pulls the popular tags for blog entries. It can be changed to ApplicationType="forum" to pull the forum tags instead. I don't think you can aggregate the two, but perhaps you can.
Just to follow up, the CS:TagCloud control supports filtering by
1. ApplicationType -- but just one. Such as: forum, weblog, gallery, filegallery
2. Groups -- this can be one or more GroupIDs, seperated by commas (this can be a group from any application)
** OR **
3. Sections -- this can be one or more SectionIDs, seperated by commas (a section is a blog, forum, folder, or gallery)
Additionally, this control can be filtered by one or more tags (via the FilterByTags property... tags seperated by commas) -- when specified, only tags containing posts also including *all* of the FilterByTags will be displayed.
For individual blogs, galleries, and file folders, there are application-specific versions of the TagCloud control. These controls automatically report on the *current* blog, gallery, or file folder.
I'm new to CS, but I love it already.
I was trying to make this work but...
1. <%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %> is already in that file. Should I add it again?
2. Where (filename, exact location) do i add the next set of code?
I'm really really new to the language too. So I've tried to copy and paste that code into random places in my default.aspx file. But I keep getting errors. Could anyone post a sample of where to place this? Thank you!
Also, is there something I should read to get to know the aspx language? Or at least, I think I'm needing to define a contentpart.
How about a way to see other people's default.aspx file when I visit their site?
1. This mark-up requires CS2.1 -- are you using an earlier version of community server? In CS2.1, the mark-up (without the tag registration) can be placed anywhere in the default.aspx page -- but placing it before or after any <div class="CommonSidebarArea">...</div> would be best.
2. You should be able to get a book to help you learn ASP.NET at your local bookstore (or Amazon.com)
3. Source code cannot be viewed by visiting a site using ASP.NET -- you will see the result of the code's execution.
Hi Leigo,
I also have a hosting account with GoDaddy and installed CS 2.0 using the Hosting Control Panel. However the installation creates a virtual directory which I am unable to access through FTP.
In your post you mentioned that you used WebLite to be able to have access to the CS folders and files. How did you do that?
Would appreciate any help.
Stormwild
Same here. I have gotten to this point, trying to change the headerlogo on CS and having a GoDaddy hosting account with only a virtual directory, I have now installed WebExplorerLite. It works. But, I still cannot find the CS folder(s)/file(s) which would allow me to change the logo. Any help would be appreciated.
Thnx
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com