Hi,
I am trying to add an rss feed link to the top of a module. I have taken this code from the category.php file
<div class="k2FeedIcon">
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
</a>
<div class="clr"></div>
</div>
When I put the code into the module php file the link comes up / and goes straight to the homepage.
What code should I replace <a href="<?php echo $this->feed; ?> with in order to get the correct link, so depending on which category is diplayed in the module the correct link is given.
Thanks in advance
Andy
I am trying to add an rss feed link to the top of a module. I have taken this code from the category.php file
<div class="k2FeedIcon">
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
</a>
<div class="clr"></div>
</div>
When I put the code into the module php file the link comes up / and goes straight to the homepage.
What code should I replace <a href="<?php echo $this->feed; ?> with in order to get the correct link, so depending on which category is diplayed in the module the correct link is given.
Thanks in advance
Andy