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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogShowing the blogs in IE7 toobar, code for doing thatShowing the blogs in IE7 toobar, code for doing that
Previous
 
Next
New Post
12/15/2006 6:02 PM
 
 

Hi,

IE7 has a button in the toolbar for showing the blogs on the page, currently the dnn blog implementation does not interact with IE, for it in order to interact, the page must have an specific header.

I've implemented that by inserting this code in the ViewBlog.ascx.vb file, into the if in line 145 (If m_oBlog.Syndicated........), where the url for the XML button is set.

Dim lnkFeedRss As New HtmlLink

lnkFeedRss.Href = lnkRSS.NavigateUrl

lnkFeedRss.Attributes.Add("type", "application/rss+xml")

lnkFeedRss.Attributes.Add("rel", "alternate")

lnkFeedRss.Attributes.Add("title", m_oBlog.Title)

Page.Header.Controls.Add(lnkFeedRss)

I also found a problem: you can see a lot of posts in the view, but in the rss you can only see the posts of the child blogs that are not syndicated independently, I think you always should see the same posts in the rss that you see in the screen. INMO the syndicate independently option should allow to have separate feeds for the blog selected but should not exclude the post from the parent aggregate. The temp solution I implemented was using this:

lnkRSS.NavigateUrl = NavigateURL(Me.TabId, "", "rssid=" + IIf(m_oBlog.ParentBlogID = -1, 0, m_oBlog.BlogID).ToString())

But I think this could be very specific for my needs.

Another thing I'd like to implement (and share) is posting from word, any one knows if that is made from a ws, and where can I get a sample asmx for guessing the interface?

 

Enrique Blanco
www.eblanco.com

 
New Post
12/16/2006 2:22 PM
 

Ernique,

Good call..but I couldn't get it to work.  I had to use this to get the feed button to enable:

lnkFeedRss.Href = NavigateURL(

Me.TabId, "", "rssid=" & m_oBlog.BlogID.ToString) 'lnkRSS.NavigateUrl

Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
12/16/2006 2:34 PM
 

You have to put the code below the lines where lnkRSS.NavigateUrl is set.

You can see the entire code block explained here: http://www.eblanco.com/Default.aspx?tabid=36&EntryID=71

It seems that you just put the blog ID you can't see in the rss feed the posts from the child blogs who are syndicated indepently.

If you have any problems, just let me know!

Enrique

 
New Post
12/16/2006 2:37 PM
 

BTW, I see you implemented it already :-D

That's nice!

 
New Post
12/17/2006 12:31 PM
 

It seems to work on my server with the code I posted above.   


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogShowing the blogs in IE7 toobar, code for doing thatShowing the blogs in IE7 toobar, code for doing that


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