Re: Linking to RSS feeds?
On Wed, Jul 9, 2008 at 10:04 PM, Siebren Bakker <[EMAIL PROTECTED]> wrote: > > on a side note: @Chris, the reason why I wanted to see if there was a way to > do it through cake, is two fold: 1) it's a fair bit less text to put into > the code file, making the file itself shorter, and 2) I am still a student, > and I know the HTML/XHTML side of things, but I'm learning how to read code > documentation still, and wanted to know if there was more to the code than I > was reading into it after looking through the html.php file source. I understand, but I try to think about this stuff pragmatically. One line of code in CakePHP or one line of code in HTML. It really makes little difference, but putting it in HTML means just a little bit less work for PHP. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Linking to RSS feeds?
Something like this should work just fine: $html->meta('rss', '/articles.rss', array('title' => 'Latest Articles Feed')); On Jul 9, 9:47 pm, "Siebren Bakker" <[EMAIL PROTECTED]> wrote: > Firefox has a nice feature where if the author of a site adds the > appropriate linking to the head of their documents, they get a nice rss icon > and link to the rss feed in the right side of the address bar. The syntax > for this is as follows: > > href='link to rss feed' /> > > Currently, the HTML helper does not include functionality to do add this to > a cake application, or layout. Does anyone know if there are any plans to do > so? > > ¤«§»¤ > In the name of Life, Liberty, and the pursuit of my sanity. > Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Linking to RSS feeds?
On Thu, Jul 10, 2008 at 1:32 AM, Jonathan Snook <[EMAIL PROTECTED]> wrote: > > > Well, I think including something that is browser-specific is not a > > good idea. Not everyone uses Firefox. Secondly, what's so hard about > > adding it by hand to your layout file? It's just one line. > > Actually, it's not FF specific. The auto-discovery is a feature that > has found its way into many other browsers. > > And really, what's so hard about adding one line of CSS to your layout > file? or one line of JS to your layout file? CakePHP is there to help > you! > > Anyways, the answer is: > > $html->meta('rss', '/controllername/actionname.rss'); > This is what I am using // Create RSS for comments on this photo $rss_url = FULL_BASE_URL.$html->url(array('controller'=>'comments','action'=>'index',$photo['Photo']['slug'].".rss")); $html->meta('rss',$rss_url, array('title'=> $session->read('cheeseCake.siteName')."- RSS Feed for comments on this photo"),false); AFAIR I had to add the FULL_BASE_URL because the address bar RSS subscribe button was not working or some such thing. Cheers Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Linking to RSS feeds?
Actually, that is the exact right syntax, just one minor difference. $html->meta('title of feed', '/controller/action.rss'); Thanks for the help Johnathon! on a side note: @Chris, the reason why I wanted to see if there was a way to do it through cake, is two fold: 1) it's a fair bit less text to put into the code file, making the file itself shorter, and 2) I am still a student, and I know the HTML/XHTML side of things, but I'm learning how to read code documentation still, and wanted to know if there was more to the code than I was reading into it after looking through the html.php file source. -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Wed, Jul 9, 2008 at 15:02, Jonathan Snook <[EMAIL PROTECTED]> wrote: > > > Well, I think including something that is browser-specific is not a > > good idea. Not everyone uses Firefox. Secondly, what's so hard about > > adding it by hand to your layout file? It's just one line. > > Actually, it's not FF specific. The auto-discovery is a feature that > has found its way into many other browsers. > > And really, what's so hard about adding one line of CSS to your layout > file? or one line of JS to your layout file? CakePHP is there to help > you! > > Anyways, the answer is: > > $html->meta('rss', '/controllername/actionname.rss'); > > I haven't looked at it too closely so that syntax may be slightly off. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Linking to RSS feeds?
> Well, I think including something that is browser-specific is not a > good idea. Not everyone uses Firefox. Secondly, what's so hard about > adding it by hand to your layout file? It's just one line. Actually, it's not FF specific. The auto-discovery is a feature that has found its way into many other browsers. And really, what's so hard about adding one line of CSS to your layout file? or one line of JS to your layout file? CakePHP is there to help you! Anyways, the answer is: $html->meta('rss', '/controllername/actionname.rss'); I haven't looked at it too closely so that syntax may be slightly off. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Linking to RSS feeds?
On Wed, Jul 9, 2008 at 3:47 PM, Siebren Bakker <[EMAIL PROTECTED]> wrote: > Currently, the HTML helper does not include functionality to do add this to > a cake application, or layout. Does anyone know if there are any plans to do > so? Well, I think including something that is browser-specific is not a good idea. Not everyone uses Firefox. Secondly, what's so hard about adding it by hand to your layout file? It's just one line. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Linking to RSS feeds?
Firefox has a nice feature where if the author of a site adds the appropriate linking to the head of their documents, they get a nice rss icon and link to the rss feed in the right side of the address bar. The syntax for this is as follows: Currently, the HTML helper does not include functionality to do add this to a cake application, or layout. Does anyone know if there are any plans to do so? ¤«§»¤ In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---