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 *Email:* [email protected] *Twitter:* _richardg *Skype:* NogginBox On 4 June 2011 15:55, Steve Schofield <[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]] *On Behalf Of *Richard Garside > *Sent:* Saturday, June 04, 2011 10:32 AM > > *To:* [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 > *Email:* [email protected] > *Twitter:* _richardg > *Skype:* NogginBox > > On 4 June 2011 14:52, Steve Schofield <[email protected]> wrote: > > Thanks Richard. I need a bit more hand holding J 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]] *On Behalf Of *Richard Garside > *Sent:* Saturday, June 04, 2011 9:38 AM > *To:* [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 > *Email:* [email protected] > *Twitter:* _richardg > *Skype:* NogginBox > > On 4 June 2011 13:55, Steve Schofield <[email protected]> wrote: > > I’ve seemed to stumble my way to get RSS feeds to work on > 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. 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! J > > > > References . J > > http://weblogs.asp.net/bleroy/archive/2010/04/07/rss-feeds-in-orchard.aspx<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]. > To unsubscribe send a blank email to > [email protected]. > > > --- You are currently subscribed to orchard-discuss as: [email protected]. > To unsubscribe send a blank email to > [email protected]. > > --- > You are currently subscribed to orchard-discuss as: > [email protected]. > To unsubscribe send a blank email to > [email protected]. > > > --- You are currently subscribed to orchard-discuss as: [email protected]. > To unsubscribe send a blank email to > [email protected]. > --- > You are currently subscribed to orchard-discuss as: > [email protected]. > To unsubscribe send a blank email to > [email protected]. > --- You are currently subscribed to orchard-discuss as: [email protected]. To unsubscribe send a blank email to [email protected].
