views:

284

answers:

1

I've got a site using Zend Layouts and on certain pages I'd like to add RSS auto-detection (adding a <link> in the head section). How do I add this to the layout just on certain pages?

+5  A: 

Add to your view:

<? $this->headLink()->appendAlternate('/feed/', 'application/rss+xml', 'RSS Feed'); ?>

Add to your layout in <head>

<?= $this->headLink() ?>
Gilean