You might want to take a look at the code for this module: 
http://orchardproject.net/gallery/List/Modules/Orchard.Module.Vandelay.Feedburner
It does stuff with the RSS registration, as well as the RSS icon.

From: Richard Garside [mailto:[email protected]]
Sent: Saturday, June 04, 2011 2:42 PM
To: [email protected]
Subject: Re: RSS icon and few thoughts.

Hi Steve,

I've checked again and it's fine. Not sure what I was looking at before.

The only problem with putting the rss link in layout.cshtml is that it appears 
twice on the blog page because that page already injects it. It's not a big 
problem it's just not very neat. There might be a better template file to put 
it in.

It's something I've been meaning to get round to, so I'll let you know if I 
find a better way when I do.

Richard.



On 4 Jun 2011, at 19:57, "Steve Schofield" 
<[email protected]<mailto:[email protected]>> wrote:
I'm not sure I quite follow, everything is working as expected.   My blog is 
not the homepage.  My blog is /steveschofield as the homepage is 
www.iislogs.com/default.aspx<http://www.iislogs.com/default.aspx>   I 
appreciate the direction.

Steve

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Richard Garside
Sent: Saturday, June 04, 2011 12:05 PM
To: 
[email protected]<mailto:[email protected]>
Subject: Re: RSS icon and few thoughts.

Hi Steve,

I've just checked out your blog and can see you've added the RSS link. Nice 
work.

Also realised you don't need the link tag bit in as you've set the blog to be 
your homepage and that already puts it in for you. On my site the blog isn't my 
homepage so that bit doesn't get added. So, sorry for leading you astray a bit 
on that part.

--
Richard Garside
Web developer and designer

Old Broadcasting House, 148 Woodhouse Lane, Leeds, LS2 9EN.
Web: www.nogginbox.co.uk<http://www.nogginbox.co.uk>
Email: [email protected]<mailto:[email protected]>
Twitter: _richardg
Skype: NogginBox
On 4 June 2011 16:02, Richard Garside 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

Sorry, knew I should have tried it first.

I think you need:

@using Orchard.UI.Resources;
as well.



--
Richard Garside
Web developer and designer

Old Broadcasting House, 148 Woodhouse Lane, Leeds, LS2 9EN.
Web: www.nogginbox.co.uk<http://www.nogginbox.co.uk>
Email: [email protected]<mailto:[email protected]>
Twitter: _richardg
Skype: NogginBox
On 4 June 2011 15:55, Steve Schofield 
<[email protected]<mailto:[email protected]>> wrote:
I'll try the widget route.  Here is what I get when trying to paste at 
layouts.cshtml
Compilation Error
Description: An error occurred during the compilation of a resource required to 
service this request. Please review the following specific error details and 
modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'LinkEntry' could 
not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 1:  @{
Line 2:      RegisterLink(new LinkEntry {Type = "application/rss+xml", Rel = 
"alternate", Href = Url.Content("~/rss?containerid=162")});
Line 3:  }



Steve

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Richard Garside
Sent: Saturday, June 04, 2011 10:32 AM

To: 
[email protected]<mailto:[email protected]>
Subject: Re: RSS icon and few thoughts.

Hi Steve,

This should add the RSS meta link. It would probably be better to create a 
module to do this as you want to be able to change theme and not worry about 
having to copy this stuff accross to your new theme.

Add this to the top of Layout.cshtml in Contoso/Views

@{
    RegisterLink(new LinkEntry {Type = "application/rss+xml", Rel = 
"alternate", Href = Url.Content("~/rss?containerid=162")});
}

Layout is used by all pages on your site, so this should inject the rss link 
into all pages on your site.

If you want an RSS link to be displayed in the pages you could just add an HTML 
Widget in the Orchard admin Widget section. You'd need to upload an RSS image 
to use in the Orchard Media section.

I hope that helps.

I did create my theme, but with illustration help from my friend at 
http://www.hexjibber.com

Cheers,
--
Richard Garside
Web developer and designer

Old Broadcasting House, 148 Woodhouse Lane, Leeds, LS2 9EN.
Web: www.nogginbox.co.uk<http://www.nogginbox.co.uk>
Email: [email protected]<mailto:[email protected]>
Twitter: _richardg
Skype: NogginBox
On 4 June 2011 14:52, Steve Schofield 
<[email protected]<mailto:[email protected]>> wrote:
Thanks Richard.  I need a bit more hand holding :)  The RSS icon to display on 
a webpage.  I'm using the Contonso template, which is functional.   I'm at the 
stage of "which file do I add what to".  MVC is real foreign although the more 
I look at it, there are some classic asp tendencies there.

I like your theme btw. Did you do that yourself?

Steve

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Richard Garside
Sent: Saturday, June 04, 2011 9:38 AM
To: 
[email protected]<mailto:[email protected]>
Subject: Re: RSS icon and few thoughts.

Hi Steve,

I've been meaning to sort out the RSS on my Orchard site too.

1) If you mean the rss icon in the browser bar you can add that using a meta 
tag in your HTML. The easiest way to add it is probably just in your theme 
template, but there may be a module for it.
<link href="/rss?containerid=162" rel="alternate" title="Richard's Projects 
(RSS)" type="application/rss+xml" />

2) I think the container id is the content id of the blog it is displaying 
content for

To make the rss link nicer I've created a URL rewrite on my server:
http://www.nogginbox.co.uk/rss

--
Richard Garside
Web developer and designer

Old Broadcasting House, 148 Woodhouse Lane, Leeds, LS2 9EN.
Web: www.nogginbox.co.uk<http://www.nogginbox.co.uk>
Email: [email protected]<mailto:[email protected]>
Twitter: _richardg
Skype: NogginBox
On 4 June 2011 13:55, Steve Schofield 
<[email protected]<mailto:[email protected]>> wrote:
I've seemed to stumble my way to get RSS feeds to work on 
www.iislogs.com/steveschofield<http://www.iislogs.com/steveschofield> (thanks 
to Mr Duthie and a couple help docs that were WAY over my simple mind).


1)      The icon doesn't show up, that is my next challenge.

2)      I'm curious what creates the containerid=162?

http://www.iislogs.com/rss?containerid=162  is the link

Random thoughts.  I've been out of the web developers space for a few years.   
I must say, Orchard is challenging, different and not like anything I've ever 
worked on.  Back in the day I was a spaghetti ASP coder who transitioned to 
ASP.NET<http://ASP.NET>.  Orchard is not even close to being similar to either 
of those.  So although I may ask really simple questions, I'd appreciate 
peoples patience as I get my blog / website transitioned. I'm liking the 
different and refreshing challenge.  PS - the support I get from the community 
has been top-notch so far.  Keep it up! :)

References . :)
http://weblogs.asp.net/bleroy/archive/2010/04/07/rss-feeds-in-orchard.aspx 
(real doozie, didn't understand much there)
http://www.orchardproject.net/docs/rss-atom.ashx
http://orchard.codeplex.com/discussions/242274 (please post the how-to on this 
thread for us non-mvc people)
http://devhammer.net/blog


Thank you,

Steve Schofield
Windows Server MVP - IIS
http://www.iislogs.com/steveschofield
---
You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>.
To unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>.

--- You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>. To unsubscribe send a blank email 
to 
[email protected]<mailto:[email protected]>.
---
You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>.
To unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>.

--- You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>. To unsubscribe send a blank email 
to 
[email protected]<mailto:[email protected]>.
---
You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>.
To unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>.


--- You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>. To unsubscribe send a blank email 
to 
[email protected]<mailto:[email protected]>.
---
You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>.
To unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>.
---
You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>.
To unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>.


---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to [email protected].

Reply via email to