Keyword

Adding rss icon and link to a Module

  • Andrew Ryan
  • Andrew Ryan's Avatar Topic Author
  • Offline
  • New Member
More
11 years 9 months ago #107885 by Andrew Ryan
Adding rss icon and link to a Module was created by Andrew Ryan
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

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum