Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN Internal Syndication - Branding Syndicated Content...DNN Internal Syndication - Branding Syndicated Content...
Previous
 
Next
New Post
3/30/2009 7:08 PM
 

Here's something that I did for a client this weekend that might interest others.  The client wanted to know why their DNN site's syndicated content was not displaying Channel information, including the company logo.  Looking at this issue sparked an idea.  The long and short explaination is that browsers allow a simple point and click method to view and subscribe to your syndicated content.  However, most browser techology does not display much of your syndicated Channel elements, including the image, and description.  Most often you get the site Title, but little else.  I explained that it really wasn't the action of DNN.  Of course, that fell flat.  So, I came up with a way to do it.  Actually, two ways, but the first involved having them always add an item with the content they wanted to use in their 'branding' efforts.  That's really not practical for large sites generating many newsfeeds, and some DNN modules allow syndication but really can't support 'branding' per say.

So, I decided to make a small change to the core code (oh, no!), because it really is something that should be available anyway.  In fact, RSS v2.0 specifications state there should always be at least 1 item in a newsfeed, and if your Announcements module has expired or no entries, but is set to syndicate, well you don't get anything  but a site title.  So why not make a small mod that is always included in your syndicated content.  What I did calls for a change to the RSSHandler.vb in the /Library/Services/Syndication folder.  Here's the small change...

         Private Function AddSiteBranding() As GenericRssElement
            Dim item As GenericRssElement = New GenericRssElement()
            item("title") = GetPortalSettings.PortalName
            item("description") = GetPortalSettings.Description
            item("link") = AddHTTP(GetDomainName(Request))
            item("pubDate") = Now().ToUniversalTime.ToString("r")
            item("guid") = AddHTTP(GetDomainName(Request))
            Return item
        End Function

I call the routine above the line that does the test for searchItemResults in the PopulateChannel sub...

            Channel.Items.Add(AddSiteBranding())
            If searchResults IsNot Nothing Then


See my blog for a more complete discussion, and leave comments or feedback.  I'm sure more professional programmers could do more, but this is working for me, and the client has what they want, and are happy campers.  Now, they have their 'branding' and a marketing edge back.

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN Internal Syndication - Branding Syndicated Content...DNN Internal Syndication - Branding Syndicated Content...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out